4fe8d96101
Just by hiding -C/--context, -W/--width, --color from argparse unless a related flag (-h/--help, -A/--annotate, etc) is found in sys.argv. This is the same trick we use in test.py/bench.py/perf.py. --- In other news my litmus test that the scripts work was broken. This does _not_ error if a script errors: $ for f in scripts/*.py ; do $f --help ; done An alternative that works is piping stdout to /dev/null, Python's exceptions go to stderr by default: $ for f in scripts/*.py ; do $f --help >/dev/null ; done