docs: add author and version to --help flag
cargo devel CI / cargo CI (push) Successful in 1m20s Details

This commit is contained in:
Christoph J. Scherr 2024-05-12 18:51:18 +02:00
parent 0f2ec91f62
commit 721467b260
1 changed files with 14 additions and 0 deletions

View File

@ -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"]),