Skip to content

Commit

Permalink
feat: set help template, improve character option description
Browse files Browse the repository at this point in the history
  • Loading branch information
dmyTRUEk committed Mar 29, 2024
1 parent 26eb35c commit c9862fc
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,22 @@ use crate::{


#[derive(Parser, Debug)]
#[command(about, version, long_about = None, author)]
#[clap(
about,
author,
version,
help_template = "\
{before-help}{name} {version}\n\
{about}\n\
Author: {author}\n\
\n\
{usage-heading} {usage}\n\
\n\
{all-args}{after-help}\
",
)]
struct CliArgs {
/// Name of the character
/// Character whose random quote to select
#[arg(short, long)]
character: Option<String>,

Expand Down

0 comments on commit c9862fc

Please sign in to comment.