mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Merge pull request #4162 from epage/help
fix(usage): Have spillover use TAB
This commit is contained in:
commit
7e4b5f6196
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ impl<'cmd> Usage<'cmd> {
|
||||||
if self.cmd.is_subcommand_negates_reqs_set()
|
if self.cmd.is_subcommand_negates_reqs_set()
|
||||||
|| self.cmd.is_args_conflicts_with_subcommands_set()
|
|| self.cmd.is_args_conflicts_with_subcommands_set()
|
||||||
{
|
{
|
||||||
styled.none("\n ");
|
styled.none("\n");
|
||||||
|
styled.none(TAB);
|
||||||
if self.cmd.is_args_conflicts_with_subcommands_set() {
|
if self.cmd.is_args_conflicts_with_subcommands_set() {
|
||||||
// Short-circuit full usage creation since no args will be relevant
|
// Short-circuit full usage creation since no args will be relevant
|
||||||
styled.literal(name);
|
styled.literal(name);
|
||||||
|
|
Loading…
Reference in a new issue