Skip to content

Add an option to control max indentation depth#38

Open
olivier-lacroix wants to merge 1 commit intoConnorGray:mainfrom
olivier-lacroix:feat/max-depth
Open

Add an option to control max indentation depth#38
olivier-lacroix wants to merge 1 commit intoConnorGray:mainfrom
olivier-lacroix:feat/max-depth

Conversation

@olivier-lacroix
Copy link
Copy Markdown

Hello there!

Thanks for this useful crate!

This PR adds an option to control the maximum indentation level for subcommands:

  • The first level of subcommands are not indented (ie. they have the same level as the main command)
  • The max_depth option control how deep subcommands can be indented

Also a bit of drive-by cleanup:

  • removed unecessary returns
  • deleted commented code
  • made help_markdown DRYer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant