From 494db061417627c3f5847fd7b4c47248e5d8d2ea Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 5 Dec 2021 16:07:24 +0200 Subject: docs: add some help to command line handling Sponsored-by: author --- src/bin/obnam-benchmark.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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, } -- cgit v1.2.1