Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usage: my_program.py [-h] [--optional_argument OPTIONAL_ARGUMENT] 1st_argument long_argument
usage: my_program.py [-h] [--optional_argument OPTIONAL_ARGUMENT] [--count COUNT] 1st_argument long_argument

My Description

Expand All @@ -12,3 +12,4 @@ positional arguments:
-h, --help show this help message and exit
--optional_argument OPTIONAL_ARGUMENT
An Optional Argument help text
--count COUNT Number of items to process
1 change: 1 addition & 0 deletions tests/test_verify_argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ def test_argument_parser() -> None:
)
parser.add_argument("1st_argument", help="1st argument help text")
parser.add_argument("--optional_argument", help="An Optional Argument help text")
parser.add_argument("--count", type=int, help="Number of items to process")
parser.add_argument("long_argument", help=f"{'Very' * 100} Long message")
verify_argument_parser(parser)
Loading