ARGPARSE Newbie question

TUA kai.peters at
Tue Apr 17 20:09:33 EDT 2018

I'd like to create a script that handles a number of verbs with mandatory and /or optional parameters like listed in the table below.

Can ARGPARSE do this and how?

Thanks for all help!

Script      Verb        Mandatory parameters                         Optional parameters 
------------------------------------------------------------------------------   list        ---                                          verbose   add         sid(string), type (string), memory (int)     comment (string), autostart (bool, default=TRUE)   memory      sid (string), memory (integer)   comment     sid(string), comment (string)   restore     sid(string), srcpath (string)   backup      sid(string), dstpath(string)   remove      sid (string)

More information about the Python-list mailing list