-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cases where a suppressed default was visible (#53)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
- Loading branch information
1 parent
1fd3047
commit c8beb8f
Showing
5 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Default suppressed | ||
================== | ||
|
||
.. argparse:: | ||
:filename: test/sample-default-supressed.py | ||
:prog: sample-default-suppressed | ||
:func: get_parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from argparse import ArgumentParser | ||
|
||
|
||
def get_parser(): | ||
parser = ArgumentParser( | ||
prog='sample-default-suppressed', description='Test suppression of version default' | ||
) | ||
parser.add_argument( | ||
'--version', help='print version number', action='version', version='1.2.3' | ||
) | ||
return parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters