Newbie ARGPARSE question

TUA kai.peters at gmail.com
Tue Apr 17 18:09:53 EDT 2018


I just discovered ARGPARSE 5 minutes ago and cannot figure this one out:

What does the Parser.add_argument() call have to look like when I need an
option 'add' that requires the mandatory parameters 'type' (string), 'size' (int), 'sid' (string) and must also handle the optional parameters 'comment' (string) and 'auto-start' (bool, defaults to TRUE).


Thanks to all helping me preserve my sanity!



More information about the Python-list mailing list