Skip to content

Conversation

kmvanbrunt
Copy link
Member

@kmvanbrunt kmvanbrunt commented Aug 28, 2020

  • Bug Fixes
    • Fixed issue where subcommand added with @as_subcommand_to decorator did not display help when called with -h/--help.
  • Enhancements
    • add_help=False no longer has to be passed to parsers used in @as_subcommand_to decorator.
      Only pass this if your subcommand should not have the -h/--help help option (as stated in argparse documentation).

tleonhardt
tleonhardt previously approved these changes Aug 28, 2020
@codecov
Copy link

codecov bot commented Aug 28, 2020

Codecov Report

Merging #988 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #988   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files          22       22           
  Lines        4533     4533           
=======================================
  Hits         4435     4435           
  Misses         98       98           
Impacted Files Coverage Δ
cmd2/cmd2.py 97.21% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47f8652...e3ed15e. Read the comment docs.

@anselor
Copy link
Contributor

anselor commented Aug 28, 2020

Looks good

anselor
anselor previously approved these changes Aug 28, 2020
…id not display help when called with -h/--help.

'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator.
@kmvanbrunt kmvanbrunt dismissed stale reviews from anselor and tleonhardt via e3ed15e August 28, 2020 03:18
@kmvanbrunt kmvanbrunt added the bug label Aug 28, 2020
@kmvanbrunt kmvanbrunt merged commit 36b0b75 into master Aug 28, 2020
@kmvanbrunt kmvanbrunt deleted the add_help branch August 28, 2020 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants