generated from PlexSheep/rs-base
refactor: use libpt help template
cargo devel CI / cargo CI (push) Successful in 2m16s
Details
cargo devel CI / cargo CI (push) Successful in 2m16s
Details
This commit is contained in:
parent
335a5b2013
commit
827efcee24
|
@ -93,20 +93,12 @@ impl Display for Format {
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Parser, Debug, Clone, PartialEq, Eq, Hash)]
|
#[derive(Parser, Debug, Clone, PartialEq, Eq, Hash)]
|
||||||
#[clap(author, version, about, long_about = None)]
|
|
||||||
#[command(
|
#[command(
|
||||||
author,
|
author,
|
||||||
version,
|
version,
|
||||||
about,
|
about,
|
||||||
long_about,
|
long_about,
|
||||||
help_template = r#"{about-section}
|
help_template = libpt::cli::args::HELP_TEMPLATE)]
|
||||||
{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", "raw"]),
|
.args(&["hex", "bin", "oct", "dec", "base64", "base32", "raw"]),
|
||||||
|
|
Reference in New Issue