cli: polish help output

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-12 16:53:32 +03:00
parent 542d7f1d5c
commit c4e30fb179
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 4 additions and 4 deletions

View File

@ -40,14 +40,14 @@ pub struct Args {
long,
default_value = ".env",
env = "VNETOD_FILE",
help = "Change source file with environment variables"
help = "Change source file with environment variables."
)]
pub file: PathBuf,
#[clap(
short = 'o',
long,
help = "Change output file with modified environment variables. It uses `file` argument by default if the output is not specified"
help = "Change output file with modified environment variables. It uses `file` argument by default if the output is not specified."
)]
pub output: Option<PathBuf>,
@ -59,7 +59,7 @@ pub struct Args {
#[clap(
value_parser,
help = "Environment varible sections that will be enabled"
help = "Environment varible sections that will be enabled."
)]
pub sections: Vec<String>,
@ -68,6 +68,7 @@ pub struct Args {
long,
value_enum,
default_value = "auto",
help = "This flag controls when to use colors.",
long_help = "
This flag controls when to use colors. The default setting is 'auto', which
means vnetod will try to guess when to use colors. For example, if vnetod is
@ -83,7 +84,6 @@ never Colors will never be used.
auto The default. vnetod tries to be smart.
always Colors will always be used regardless of where output is sent.
ansi Like 'always', but emits ANSI escapes (even in a Windows console).
"
)]
pub color: ColorVariant,