chiark / gitweb /
Config inspection: docs (wip)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Jan 2023 01:50:27 +0000 (01:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 Jan 2023 02:12:41 +0000 (02:12 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
client/client.rs
server/server.rs

index 52b7ec390c1d7479b46604d5ac358192e5d5a3a9..627a7995abbd032d9dba3f13803b67e7eed7b347 100644 (file)
@@ -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:
index 0f240fbcb3e8e72b9e8dbb02bcbde1d60f7c25e9..97aa32683ee767a84b64b59cff55637957632285 100644 (file)
@@ -35,7 +35,11 @@ pub struct Opts {
   #[clap(long)]
   pidfile: Option<String>,
 
-  /// 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<String>,
 }