diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 572045bf..e1a3d6d9 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -1082,10 +1082,9 @@ impl<'help, 'app> Parser<'help, 'app> { } } } - let name = sc.name.clone(); matcher.subcommand(SubCommand { - id: Id::from_ref(&name), // @TODO @maybe: should be sc.id? - name, + id: sc.id.clone(), + name: sc.name.clone(), matches: sc_matcher.into_inner(), }); }