mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +00:00
add CLI option to identify a command with a custom name
CLI option `--name` can be used to define the name to identify a command. If not passed, then the command itself is used. Commands and names are paired in the same order: The first command executed gets the first name passed as option. Close #326
This commit is contained in:
1 parent
674b5422ab
commit
0f0a109ca0
4 files changed
+27
-2
No files matched your search
@@ -210,11 +210,14 @@ pub struct HyperfineOptions {
|
||||
|
||||
/// Which time unit to use for CLI & Markdown output
|
||||
pub time_unit: Option<Unit>,
|
||||
|
||||
pub names: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl Default for HyperfineOptions {
|
||||
fn default() -> HyperfineOptions {
|
||||
HyperfineOptions {
|
||||
names: None,
|
||||
warmup_count: 0,
|
||||
runs: Runs::default(),
|
||||
min_time_sec: 3.0,
|
||||
|
||||
Reference in new issue
Block a user