summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-12-05 16:07:24 +0200
committerLars Wirzenius <liw@liw.fi>2021-12-05 16:07:24 +0200
commit494db061417627c3f5847fd7b4c47248e5d8d2ea (patch)
tree900f0a152e69c1e7ba26b46bbeb39931e25ba396 /src
parent0133bd6fb912d0138841cd8d2a6c878c674e0e81 (diff)
downloadobnam-benchmark-494db061417627c3f5847fd7b4c47248e5d8d2ea.tar.gz
docs: add some help to command line handling
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/bin/obnam-benchmark.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/obnam-benchmark.rs b/src/bin/obnam-benchmark.rs
index b76a7aa..3c2060e 100644
--- a/src/bin/obnam-benchmark.rs
+++ b/src/bin/obnam-benchmark.rs
@@ -30,12 +30,16 @@ struct Opt {
#[derive(Debug, StructOpt)]
enum Command {
+ /// Run benchmarks
Run(Run),
+
+ /// Dump the specification as JSON
Spec(Spec),
}
#[derive(Debug, StructOpt)]
struct Run {
+ /// Name of the specification file
#[structopt(parse(from_os_str))]
spec: PathBuf,
}
@@ -52,9 +56,11 @@ impl Run {
#[derive(Debug, StructOpt)]
struct Spec {
+ /// Name of the specification file
#[structopt(parse(from_os_str))]
spec: PathBuf,
+ /// Name of JSON file to write
#[structopt(long, parse(from_os_str))]
output: PathBuf,
}