feat(gui): improve CLI help output and argument validation#10069
feat(gui): improve CLI help output and argument validation#10069joshtrichards wants to merge 8 commits into
Conversation
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
showHint() calls exit itself. Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
|
|
Artifact containing the AppImage: nextcloud-appimage-pr-10069.zip Digest: To test this change/fix you can download the above artifact file, unzip it, and run it. Please make sure to quit your existing Nextcloud app and backup your data. |
| } else if (isOption(option, "--background")) { | ||
| _backgroundMode = true; | ||
| } else if (isOption(option, "--reverse")) { | ||
| // FIXME: This is current implemented as a toggle, but help text suggests it should set RTL |
There was a problem hiding this comment.
my bad
it should reverse the usual direction allowing use of French locale (for example) to test RTL layout
maybe you can fix the description of the option ?




Summary
Make the GUI's command-line interface easier to use by improving the help text and tightening argument parsing.
Changes
--helpoutput into clearer grouped sectionsparseOptions()parseOptions()with small local helpers--logexpirevalues instead of silently treating them as0--reverseand--overridelocaldirNotes
AccountSetupCommandLineManageris unchanged--logexpirevalidationFollow-up
Potential follow-ups kept out of this PR:
--reverseshould set RTL unconditionally--overridelocaldir--should be accepted--backgrounddoes and does not do and set expectations accordingly in the help text/etc and address [Bug]:--backgroundnot working #5916Checklist
AI (if applicable)