From 33087bcd909869586796f2e28eb7bf86547acfb6 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Thu, 14 Sep 2023 16:56:45 -0700 Subject: [PATCH] cli docs: document that --config-toml can be repeated --- cli/src/cli_util.rs | 2 +- cli/tests/test_global_opts.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index c73ac8e141..20a80187fa 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -2292,7 +2292,7 @@ pub struct EarlyArgs { // Parsing with ignore_errors will crash if this is bool, so use // Option. pub no_pager: Option, - /// Additional configuration options + /// Additional configuration options (can be repeated) // TODO: Introduce a `--config` option with simpler syntax for simple // cases, designed so that `--config ui.color=auto` works #[arg( diff --git a/cli/tests/test_global_opts.rs b/cli/tests/test_global_opts.rs index 853f66110c..b9c71c06e1 100644 --- a/cli/tests/test_global_opts.rs +++ b/cli/tests/test_global_opts.rs @@ -430,7 +430,7 @@ fn test_help() { -v, --verbose Enable verbose logging --color When to colorize output (always, never, auto) --no-pager Disable the pager - --config-toml Additional configuration options + --config-toml Additional configuration options (can be repeated) "###); }