diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-01-20 09:07:21 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-01-20 11:36:39 +0100 |
commit | 0f4a78e138afa04821e8502aa0cae1ded8f2c8ea (patch) | |
tree | 378088a27cd41150742f4930f271b9d2b94ba4bf | |
parent | f14946aa78cddc724e0d7c6c1ac8852a4a216ea2 (diff) |
sqv: Simplify cli parsing.
- .value_name(..) implies .takes_value(true).
-rw-r--r-- | sqv/src/sqv_cli.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sqv/src/sqv_cli.rs b/sqv/src/sqv_cli.rs index 1391924f..f1022319 100644 --- a/sqv/src/sqv_cli.rs +++ b/sqv/src/sqv_cli.rs @@ -16,26 +16,22 @@ pub fn configure(app: App<'static, 'static>) -> App<'static, 'static> { .help("A keyring. Can be given multiple times.") .long("keyring") .required(true) - .takes_value(true) .number_of_values(1) .multiple(true)) .arg(Arg::with_name("signatures").value_name("N") .help("The number of valid signatures to return success. Default: 1") .long("signatures") - .short("n") - .takes_value(true)) + .short("n")) .arg(Arg::with_name("not-before").value_name("TIMESTAMP") .help("Consider signatures created before TIMESTAMP as invalid. \ If a date is given, 00:00:00 is used for the time. \ \n[default: no constraint]") - .long("not-before") - .takes_value(true)) + .long("not-before")) .arg(Arg::with_name("not-after").value_name("TIMESTAMP") .help("Consider signatures created after TIMESTAMP as invalid. \ If a date is given, 23:59:59 is used for the time. \ \n[default: now]") - .long("not-after") - .takes_value(true)) + .long("not-after")) .arg(Arg::with_name("sig-file").value_name("SIG-FILE") .help("File containing the detached signature.") .required(true)) |