Skip to content

Commit

Permalink
Merge pull request #340 from fox0/time-locale
Browse files Browse the repository at this point in the history
time: Locales
  • Loading branch information
jgarzik authored Oct 18, 2024
2 parents 05d848d + d9b745d commit 3509eb9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion datetime/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ use plib::PROJECT_NAME;
#[command(
version,
about = gettext("time - time a simple command or give resource usage"),
help_template = gettext("{about-with-newline}\nUsage: {usage}\n\nArguments:\n{positionals}\n\nOptions:\n{options}")
help_template = gettext("{about}\n\nUsage: {usage}\n\nArguments:\n{positionals}\n\nOptions:\n{options}"),
disable_help_flag = true,
disable_version_flag = true,
)]
struct Args {
#[arg(
Expand All @@ -41,6 +43,12 @@ struct Args {
help = gettext("Arguments for the utility")
)]
arguments: Vec<String>,

#[arg(short, long, help = gettext("Print help"), action = clap::ArgAction::HelpLong)]
help: Option<bool>,

#[arg(short = 'V', long, help = gettext("Print version"), action = clap::ArgAction::Version)]
version: Option<bool>,
}

enum TimeError {
Expand Down

0 comments on commit 3509eb9

Please sign in to comment.