Optparse: Detecting if option or option-arg is specified or not

Sam Smith nikita_raja at yahoo.com
Thu Mar 11 17:10:44 EST 2004


I am using optparse for the commandline parsing for my programs.  I
was wondering if it is possible to detect if an option or option-arg
has been specified on the commandline by the user or not. Please do
not suggest default value solutions.

Thanks.



More information about the Python-list mailing list