argparse, tell if arg was defaulted

Kushal Kumaran kushal.kumaran+python at gmail.com
Tue Mar 15 12:22:08 EDT 2011


----- Original message -----
> Is there any way to tell if an arg value was defaulted vs. set on
> command line?
> 

I guess if you need to care about the difference, you shouldn't set a default.

-- 
regards,
kushal




More information about the Python-list mailing list