servoshell: Minor fixes to cli help. (#35794)

Fixes the `--pref` enable hint to use `_` instead of dots.
Remove `--prefs-file` from the hint, since the hint is placed
directly after the long option. (The help line displayed as
`--prefs-file --prefs-file /path/to/prefs.json` before).

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
Jonathan Schwender 2025-03-04 21:13:07 +01:00 committed by GitHub
parent 5533092ab3
commit ce9566c5fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,7 +359,7 @@ pub(crate) fn parse_command_line_arguments(args: Vec<String>) -> ArgumentParsing
"",
"pref",
"A preference to set to enable",
"dom.bluetooth.enabled",
"dom_bluetooth_enabled",
);
opts.optmulti(
"",
@ -371,7 +371,7 @@ pub(crate) fn parse_command_line_arguments(args: Vec<String>) -> ArgumentParsing
"",
"prefs-file",
"Load in additional prefs from a file.",
"--prefs-file /path/to/prefs.json",
"/path/to/prefs.json",
);
let opt_match = match opts.parse(args) {