From fb95c0913428037d3b1c74a79bbeaffd171a8b31 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 26 Jul 2016 15:57:43 +0200 Subject: [PATCH] Fix panic on unwrap() Surprisingly, the ArgGroup feature of clap (which was applied in a wrong way here anyways) caused the "name" Arg to be inaccessible. I don't know why, but that's it. Removing the group fixes the issue. --- imag-notes/src/ui.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/imag-notes/src/ui.rs b/imag-notes/src/ui.rs index 6b3b099f..edc3c73e 100644 --- a/imag-notes/src/ui.rs +++ b/imag-notes/src/ui.rs @@ -46,9 +46,6 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .value_name("NAME")) .arg(tag_argument()) - .group(ArgGroup::with_name("editargs") - .args(&[tag_argument_name(), "name"]) - .required(true)) ) .subcommand(SubCommand::with_name("list")