From f8a76d54eabf0a980db7bf27f58a7ed45a9d3587 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 10 Jan 2023 01:50:27 +0000 Subject: [PATCH] Config inspection: docs (wip) Signed-off-by: Ian Jackson --- client/client.rs | 6 +++++- server/server.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/client.rs b/client/client.rs index 52b7ec3..627a799 100644 --- a/client/client.rs +++ b/client/client.rs @@ -19,7 +19,11 @@ pub struct Opts { #[clap(flatten)] config: config::Opts, - /// Print a config item, do not actually run + /// Print config item(s), do not actually run + /// + /// Argument is (comma-separated) list of config keys; + /// values will be printed space-separated. + /// The key `pretty` dumps the whole config in a pretty debug format. /// /// One line is output for each association. /// Additional pseudo-config-keys are recognised: diff --git a/server/server.rs b/server/server.rs index 0f240fb..97aa326 100644 --- a/server/server.rs +++ b/server/server.rs @@ -35,7 +35,11 @@ pub struct Opts { #[clap(long)] pidfile: Option, - /// Print a config item, do not actually run + /// Print config item(s), do not actually run + /// + /// Argument is (comma-separated) list of config keys; + /// values will be printed space-separated. + /// The key `pretty` dumps the whole config in a pretty debug format. #[clap(long)] print_config: Option, } -- 2.30.2