rcgsheffield / urban_flows

Research Computing work for the Urban Flows project
2 stars 2 forks source link

Fixed bool args #6

Closed Joe-Heffer-Shef closed 4 years ago

Joe-Heffer-Shef commented 4 years ago

Use Python in-build boolean command line arguments

Joe-Heffer-Shef commented 4 years ago

You use this like so: python pipeline.py -v

Joe-Heffer-Shef commented 4 years ago

https://docs.python.org/3.5/library/argparse.html#action

'store_true' and 'store_false' - These are special cases of 'store_const' used for storing the values True and False respectively. In addition, they create default values of False and True respectively. For example: