From ce9566c5fe59a6a459a0a764b8a5be0077f053a3 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Date: Tue, 4 Mar 2025 21:13:07 +0100 Subject: [PATCH] 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 --- ports/servoshell/prefs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/servoshell/prefs.rs b/ports/servoshell/prefs.rs index 3b433d5beb7..311f1337b19 100644 --- a/ports/servoshell/prefs.rs +++ b/ports/servoshell/prefs.rs @@ -359,7 +359,7 @@ pub(crate) fn parse_command_line_arguments(args: Vec) -> 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) -> 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) {