cli: polish help output
This commit is contained in:
parent
542d7f1d5c
commit
c4e30fb179
1 changed files with 4 additions and 4 deletions
|
@ -40,14 +40,14 @@ pub struct Args {
|
||||||
long,
|
long,
|
||||||
default_value = ".env",
|
default_value = ".env",
|
||||||
env = "VNETOD_FILE",
|
env = "VNETOD_FILE",
|
||||||
help = "Change source file with environment variables"
|
help = "Change source file with environment variables."
|
||||||
)]
|
)]
|
||||||
pub file: PathBuf,
|
pub file: PathBuf,
|
||||||
|
|
||||||
#[clap(
|
#[clap(
|
||||||
short = 'o',
|
short = 'o',
|
||||||
long,
|
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>,
|
pub output: Option<PathBuf>,
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ pub struct Args {
|
||||||
|
|
||||||
#[clap(
|
#[clap(
|
||||||
value_parser,
|
value_parser,
|
||||||
help = "Environment varible sections that will be enabled"
|
help = "Environment varible sections that will be enabled."
|
||||||
)]
|
)]
|
||||||
pub sections: Vec<String>,
|
pub sections: Vec<String>,
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@ pub struct Args {
|
||||||
long,
|
long,
|
||||||
value_enum,
|
value_enum,
|
||||||
default_value = "auto",
|
default_value = "auto",
|
||||||
|
help = "This flag controls when to use colors.",
|
||||||
long_help = "
|
long_help = "
|
||||||
This flag controls when to use colors. The default setting is 'auto', which
|
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
|
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.
|
auto The default. vnetod tries to be smart.
|
||||||
always Colors will always be used regardless of where output is sent.
|
always Colors will always be used regardless of where output is sent.
|
||||||
ansi Like 'always', but emits ANSI escapes (even in a Windows console).
|
ansi Like 'always', but emits ANSI escapes (even in a Windows console).
|
||||||
|
|
||||||
"
|
"
|
||||||
)]
|
)]
|
||||||
pub color: ColorVariant,
|
pub color: ColorVariant,
|
||||||
|
|
Loading…
Reference in a new issue