diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-12-05 16:07:24 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-12-05 16:07:24 +0200 |
commit | 494db061417627c3f5847fd7b4c47248e5d8d2ea (patch) | |
tree | 900f0a152e69c1e7ba26b46bbeb39931e25ba396 | |
parent | 0133bd6fb912d0138841cd8d2a6c878c674e0e81 (diff) | |
download | obnam-benchmark-494db061417627c3f5847fd7b4c47248e5d8d2ea.tar.gz |
docs: add some help to command line handling
Sponsored-by: author
-rw-r--r-- | src/bin/obnam-benchmark.rs | 6 |
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, } |