Skip to content

Commit de2ec55

Browse files
committed
Improve parts of some usage messages.
1 parent ce718d1 commit de2ec55

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

collector/src/main.rs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,12 @@ fn main_result() -> anyhow::Result<i32> {
427427
'Doc', 'Opt', 'All'")
428428
(@arg CARGO: --cargo +takes_value "The path to the local Cargo to use")
429429
(@arg DB: --db +takes_value "Database output file")
430-
(@arg EXCLUDE: --exclude +takes_value "Exclude benchmarks matching these")
431-
(@arg INCLUDE: --include +takes_value "Include benchmarks matching these")
430+
(@arg EXCLUDE: --exclude +takes_value
431+
"Exclude all benchmarks matching anything in\n\
432+
this comma-separated list of patterns")
433+
(@arg INCLUDE: --include +takes_value
434+
"Include only benchmarks matching something in\n\
435+
this comma-separated list of patterns")
432436
(@arg RUNS: --runs +takes_value
433437
"One or more (comma-separated) of: 'Full',\n\
434438
'IncrFull', 'IncrUnchanged', 'IncrPatched', 'All'")
@@ -463,17 +467,22 @@ fn main_result() -> anyhow::Result<i32> {
463467
// Mandatory arguments
464468
(@arg PROFILER: +required +takes_value
465469
"One of: 'self-profile', 'time-passes', 'perf-record',\n\
466-
'cachegrind', 'callgrind', ''dhat', 'massif', 'eprintln'")
470+
'oprofile', 'cachegrind', 'callgrind', 'dhat', 'massif',\n\
471+
'eprintln', 'llvm-lines'")
467472
(@arg RUSTC: +required +takes_value "The path to the local rustc to benchmark")
468473
(@arg ID: +required +takes_value "Identifier to associate benchmark results with")
469474

470475
// Options
471476
(@arg BUILDS: --builds +takes_value
472-
"One or more (comma-separated) of: 'Check', 'Debug',\n\
473-
'Doc', 'Opt', 'All'")
477+
"One or more (comma-separated) of: 'Check', \n\
478+
'Debug', 'Doc', 'Opt', 'All'")
474479
(@arg CARGO: --cargo +takes_value "The path to the local Cargo to use")
475-
(@arg EXCLUDE: --exclude +takes_value "Exclude benchmarks matching these")
476-
(@arg INCLUDE: --include +takes_value "Include benchmarks matching these")
480+
(@arg EXCLUDE: --exclude +takes_value
481+
"Exclude all benchmarks matching anything in\n\
482+
this comma-separated list of patterns")
483+
(@arg INCLUDE: --include +takes_value
484+
"Include only benchmarks matching something in\n\
485+
this comma-separated list of patterns")
477486
(@arg OUT_DIR: --("out-dir") +takes_value "Output directory")
478487
(@arg RUNS: --runs +takes_value
479488
"One or more (comma-separated) of: 'Full',\n\

0 commit comments

Comments
 (0)