Skip to content

Commit

Permalink
Fix suppressing optional arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
simaoafonso-pwt committed Nov 18, 2021
1 parent edbe807 commit c780fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shtab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def recurse_parser(cparser, positional_idx, requirements=None):

for optional in cparser._get_optional_actions():
log.debug('%s| Optional: %s', log_prefix, optional.dest)
if optional.help == SUPPRESS:
if optional.help != SUPPRESS:
# Mingle all optional arguments for all subparsers
for optional_str in optional.option_strings:
log.debug('%s| | %s', log_prefix, optional_str)
Expand Down

0 comments on commit c780fbc

Please sign in to comment.