summaryrefslogtreecommitdiffstats
path: root/scripts/lib/argparse_oe.py
Commit message (Collapse)AuthorAgeFilesLines
* scripts: print usage in argparse-using scripts when a command-line error occursPaul Eggleton2015-12-281-0/+11
For scripts that use Python's standard argparse module to parse command-line arguments, create a subclass which will show the usage the usage information when a command-line parsing error occurs. The most common case would be when the script is run with no arguments; at least then the user immediately gets to see what arguments they might need to pass instead of just an error message. (From OE-Core rev: d62fe7c9bc2df6a4464440a3cae0539074bf99aa) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>