Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

argparse one argument or without argument

parser.add_argument("-a", "--automatic", nargs="?", const=8, type=int)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #argparse #argument #argument
ADD COMMENT
Topic
Name
2+6 =