generated from PlexSheep/rs-base
docs: add author and version to --help flag
cargo devel CI / cargo CI (push) Successful in 1m20s
Details
cargo devel CI / cargo CI (push) Successful in 1m20s
Details
This commit is contained in:
parent
0f2ec91f62
commit
721467b260
14
src/main.rs
14
src/main.rs
|
@ -11,6 +11,20 @@ use format::*;
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[clap(author, version, about, long_about = None)]
|
#[clap(author, version, about, long_about = None)]
|
||||||
|
#[command(
|
||||||
|
author,
|
||||||
|
version,
|
||||||
|
about,
|
||||||
|
long_about,
|
||||||
|
help_template = r#"{about-section}
|
||||||
|
{usage-heading} {usage}
|
||||||
|
{all-args}{tab}
|
||||||
|
|
||||||
|
{name}: {version}
|
||||||
|
Author: {author-with-newline}
|
||||||
|
"#
|
||||||
|
)]
|
||||||
|
|
||||||
#[clap(group(
|
#[clap(group(
|
||||||
ArgGroup::new("format")
|
ArgGroup::new("format")
|
||||||
.args(&["hex", "bin", "oct", "dec", "base64", "base32"]),
|
.args(&["hex", "bin", "oct", "dec", "base64", "base32"]),
|
||||||
|
|
Reference in New Issue