What I mean by multiple level arguments is something like svn help, after parsing the svn help part, the following word is considered argument to help the subcommand.
Is it possible to set this up with optparse?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the python docs, optparse is now considered as deprecated, and won’t be developed further; therefore i would strongly suggest you to use the module argparse, whith which you can create “multiple level” arguments.