From 71a47c05664ed94ebe324695d5b07a925ac4b107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Campinas?= Date: Thu, 15 Oct 2020 22:11:38 +0200 Subject: [PATCH] use --command-name for the long option --- doc/hyperfine.1 | 2 +- src/hyperfine/app.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/hyperfine.1 b/doc/hyperfine.1 index 26f07d9..e4a51ad 100644 --- a/doc/hyperfine.1 +++ b/doc/hyperfine.1 @@ -164,7 +164,7 @@ Print the stdout and stderr of the benchmark instead of suppressing it. This will increase the time it takes for benchmarks to run, so it should only be used for debugging purposes or when trying to benchmark output speed. .HP -\fB\-\-name\fR \fIname\fP +\fB\-n\fR, \fB\-\-command\-name\fR \fIname\fP .IP Identify a command with the given \fIname\fP. Commands and names are paired in the same order: the first command executed gets the first name passed as diff --git a/src/hyperfine/app.rs b/src/hyperfine/app.rs index 1521af8..c111e46 100644 --- a/src/hyperfine/app.rs +++ b/src/hyperfine/app.rs @@ -228,7 +228,7 @@ fn build_app() -> App<'static, 'static> { ) .arg( Arg::with_name("command-name") - .long("name") + .long("command-name") .short("n") .takes_value(true) .multiple(true)