Use argparse (python buil-in) so that delete argument is explicit, instead of 'specify anything as the second parameter' user has to use -d/--delete to remove binaries after the check. Explicit is always better than implicit and I myself few times fat-fingered something behind the command and it deleted binaries that I wanted to keep. With this patch you get error for random things:
usage: verify.py [-h] [-d] VERSION
verify.py: error: unrecognized arguments: d
With argparse verify.py now has a nice help message that is handy for scripts:
usage: verify.py [-h] [-d] VERSION
Download and verify bitcoin binaries.
positional arguments:
VERSION Target version.
optional arguments:
-h, --help show this help message and exit
-d, --delete Delete the downloaded binaries afterwards.
I aslo fixed error in README which previously stated that If an error occurs the return value is 2. but correct is that it returns >= 2