From 73ffcb97ab8badd230b7ca46e669c025dde91c08 Mon Sep 17 00:00:00 2001 From: ppom Date: Wed, 28 May 2025 12:00:00 +0200 Subject: [PATCH] Update CLI help messages --- src/cli.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 5e86e6f..6f79c2c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -47,7 +47,7 @@ pub enum SubCommand { #[clap(short = 's', long, default_value = "/run/reaction/reaction.sock")] socket: PathBuf, - /// how to format output: json or yaml. + /// how to format output #[clap(short = 'f', long, default_value_t = Format::YAML)] format: Format, @@ -70,7 +70,7 @@ Then prints the flushed matches and actions." #[clap(short = 's', long, default_value = "/run/reaction/reaction.sock")] socket: PathBuf, - /// how to format output: json or yaml. + /// how to format output #[clap(short = 'f', long, default_value_t = Format::YAML)] format: Format, @@ -102,12 +102,13 @@ Giving a configuration file permits to use its patterns in REGEX." #[clap(value_name = "LINE")] line: Option, }, + /// Test your configuration TestConfig { - /// configuration file in json, jsonnet or yaml format, or directory containing those files. required. + /// either a configuration file in json, jsonnet or yaml format, or a directory containing those files. required. #[clap(short = 'c', long)] config: PathBuf, - /// how to format output: json or yaml. + /// how to format output #[clap(short = 'f', long, default_value_t = Format::YAML)] format: Format,