🔀 Merge branch 'argparser'
This commit is contained in:
commit
f28c206094
2
main.py
2
main.py
|
@ -47,13 +47,13 @@ def parse_args(args=sys.argv[1:]): # pylint: disable=W0102
|
||||||
"-f",
|
"-f",
|
||||||
"--foo",
|
"--foo",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
default=False,
|
|
||||||
dest="foo",
|
dest="foo",
|
||||||
help="Using foo",
|
help="Using foo",
|
||||||
)
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"-b",
|
"-b",
|
||||||
"--bar",
|
"--bar",
|
||||||
|
const="BAR",
|
||||||
help="Using bar",
|
help="Using bar",
|
||||||
metavar="BAR",
|
metavar="BAR",
|
||||||
nargs="?",
|
nargs="?",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user