mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
refactor(help): Clarify usage condition
This commit is contained in:
parent
676e934a61
commit
7472aba6ce
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ impl<'cmd> Usage<'cmd> {
|
|||
self.write_args(styled, &[], !incl_reqs);
|
||||
|
||||
// incl_reqs is only false when this function is called recursively
|
||||
if self.cmd.has_visible_subcommands() && incl_reqs
|
||||
|| self.cmd.is_allow_external_subcommands_set()
|
||||
if (self.cmd.has_visible_subcommands() || self.cmd.is_allow_external_subcommands_set())
|
||||
&& incl_reqs
|
||||
{
|
||||
let value_name = self
|
||||
.cmd
|
||||
|
|
Loading…
Reference in a new issue