File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ use plib::PROJECT_NAME;
22
22
#[ command(
23
23
version,
24
24
about = gettext( "time - time a simple command or give resource usage" ) ,
25
- help_template = gettext( "{about-with-newline}\n Usage: {usage}\n \n Arguments:\n {positionals}\n \n Options:\n {options}" )
25
+ help_template = gettext( "{about}\n \n Usage: {usage}\n \n Arguments:\n {positionals}\n \n Options:\n {options}" ) ,
26
+ disable_help_flag = true ,
27
+ disable_version_flag = true ,
26
28
) ]
27
29
struct Args {
28
30
#[ arg(
@@ -41,6 +43,12 @@ struct Args {
41
43
help = gettext( "Arguments for the utility" )
42
44
) ]
43
45
arguments : Vec < String > ,
46
+
47
+ #[ arg( short, long, help = gettext( "Print help" ) , action = clap:: ArgAction :: HelpLong ) ]
48
+ help : Option < bool > ,
49
+
50
+ #[ arg( short = 'V' , long, help = gettext( "Print version" ) , action = clap:: ArgAction :: Version ) ]
51
+ version : Option < bool > ,
44
52
}
45
53
46
54
enum TimeError {
You can’t perform that action at this time.
0 commit comments