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)]
|
||||
#[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}
|
||||
"#
|
||||
)]
|
||||
help_template = libpt::cli::args::HELP_TEMPLATE)]
|
||||
#[clap(group(
|
||||
ArgGroup::new("format")
|
||||
.args(&["hex", "bin", "oct", "dec", "base64", "base32", "raw"]),
|
||||
|
|
Reference in New Issue