mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
5533092ab3
commit
ce9566c5fe
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue