mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:15:49 +02:00
Do not create help for wrapped command (#11235)
Pretty self-explanatory. The commit is only one `if`. Fix #11096
This commit is contained in:
@ -580,7 +580,9 @@ pub fn parse_def(
|
||||
let declaration = working_set.get_decl_mut(decl_id);
|
||||
|
||||
signature.name = name.clone();
|
||||
*signature = signature.add_help();
|
||||
if !has_wrapped {
|
||||
*signature = signature.add_help();
|
||||
}
|
||||
signature.usage = usage;
|
||||
signature.extra_usage = extra_usage;
|
||||
signature.allows_unknown_args = has_wrapped;
|
||||
|
Reference in New Issue
Block a user