summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-11-11 23:37:30 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-11-11 23:38:00 +0100
commitb9464579c3c69b998a7e725e29f58189d587f839 (patch)
tree24202f2485c4d93508fc9a73b98f52dfb6485268 /src
parent33931c9c5380252c44d8510248bbb91f18fb26e7 (diff)
downloadvtcol-b9464579c3c69b998a7e725e29f58189d587f839.tar.gz
fix argument handling for “dump” subcommand
D’oh!
Diffstat (limited to 'src')
-rw-r--r--src/vtcol.rs4
1 files 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));
}