refactor: use libpt help template
cargo devel CI / cargo CI (push) Successful in 2m16s Details

This commit is contained in:
Christoph J. Scherr 2024-09-06 18:02:12 +02:00
parent 335a5b2013
commit 827efcee24
1 changed files with 1 additions and 9 deletions

View File

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