mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-08-16 17:30:21 +03:00
Merge 2e4fbf4117
into df34f32dca
This commit is contained in:
commit
bc962c41b7
@ -225,6 +225,7 @@ fn build_command() -> Command {
|
||||
.arg(
|
||||
Arg::new("style")
|
||||
.long("style")
|
||||
.short('l')
|
||||
.action(ArgAction::Set)
|
||||
.value_name("TYPE")
|
||||
.value_parser(["auto", "basic", "full", "nocolor", "color", "none"])
|
||||
@ -240,6 +241,7 @@ fn build_command() -> Command {
|
||||
.arg(
|
||||
Arg::new("sort")
|
||||
.long("sort")
|
||||
.short('t')
|
||||
.action(ArgAction::Set)
|
||||
.value_name("METHOD")
|
||||
.value_parser(["auto", "command", "mean-time"])
|
||||
@ -314,6 +316,7 @@ fn build_command() -> Command {
|
||||
.arg(
|
||||
Arg::new("show-output")
|
||||
.long("show-output")
|
||||
.short('d')
|
||||
.action(ArgAction::SetTrue)
|
||||
.conflicts_with("style")
|
||||
.help(
|
||||
@ -326,6 +329,7 @@ fn build_command() -> Command {
|
||||
.arg(
|
||||
Arg::new("output")
|
||||
.long("output")
|
||||
.short('O')
|
||||
.conflicts_with("show-output")
|
||||
.action(ArgAction::Set)
|
||||
.value_name("WHERE")
|
||||
@ -349,6 +353,7 @@ fn build_command() -> Command {
|
||||
.arg(
|
||||
Arg::new("input")
|
||||
.long("input")
|
||||
.short('I')
|
||||
.action(ArgAction::Set)
|
||||
.num_args(1)
|
||||
.value_name("WHERE")
|
||||
|
Loading…
Reference in New Issue
Block a user