Files
littlefs/scripts
Christopher Haster 4fe8d96101 scripts: Fixed conflicting -C/--compare vs -C/--context errors
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
2026-03-09 22:55:52 -05:00
..
2025-04-16 15:23:06 -05:00