From b9464579c3c69b998a7e725e29f58189d587f839 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 11 Nov 2021 23:37:30 +0100 Subject: =?UTF-8?q?fix=20argument=20handling=20for=20=E2=80=9Cdump?= =?UTF-8?q?=E2=80=9D=20subcommand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit D’oh! --- src/vtcol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vtcol.rs b/src/vtcol.rs index 5f9cc17..3b8f59a 100644 --- a/src/vtcol.rs +++ b/src/vtcol.rs @@ -276,7 +276,7 @@ impl<'a> Job .help("name of the scheme") .required(true) .value_name("NAME") - .index(1), + .takes_value(true) ), ) .subcommand( @@ -336,7 +336,7 @@ impl<'a> Job match matches.subcommand() { ("dump", Some(subm)) => { - if let Some(name) = subm.value_of("name") { + if let Some(name) = subm.value_of("scheme") { let scm = Scheme::from(name); return Ok(Self::Dump(scm)); } -- cgit v1.2.3