Skip to content

Commit

Permalink
fix(multicall): Show subcommands are required
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 2, 2022
1 parent 414ae57 commit 5cd1a40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/build/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4028,6 +4028,7 @@ impl<'help> App<'help> {
#[cfg(feature = "unstable-multicall")]
{
if self.is_set(AppSettings::Multicall) {
self.settings.insert(AppSettings::SubcommandRequired.into());
self.settings.insert(AppSettings::DisableHelpFlag.into());
self.settings.insert(AppSettings::DisableVersionFlag.into());
}
Expand Down
2 changes: 1 addition & 1 deletion tests/builder/subcommands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ error: The subcommand 'baz' wasn't recognized
If you believe you received this message in error, try re-running with ' -- baz'
USAGE:
[SUBCOMMAND]
<SUBCOMMAND>
For more information try help
";
Expand Down

0 comments on commit 5cd1a40

Please sign in to comment.