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.
This commit is contained in:
Matthias Beyer 2016-07-26 15:57:43 +02:00
parent 67d536fa74
commit fb95c09134

View file

@ -46,9 +46,6 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.value_name("NAME")) .value_name("NAME"))
.arg(tag_argument()) .arg(tag_argument())
.group(ArgGroup::with_name("editargs")
.args(&[tag_argument_name(), "name"])
.required(true))
) )
.subcommand(SubCommand::with_name("list") .subcommand(SubCommand::with_name("list")