argparse and subparsers

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Mon Jun 27 01:34:14 EDT 2016


On Monday, June 27, 2016 at 4:56:10 PM UTC+12, Sachin Garg wrote:

> # Set verbose flag
> verbose = False
> if arguments['--verbose']:
>     verbose = True
> elif arguments['-q']:
>     verbose = False

Don’t you just love code (and commenting) like this...



More information about the Python-list mailing list