]> code.ossystems Code Review - openembedded-core.git/commit
scripts/lib/argparse_oe: show self.prog in the error message
authorChristopher Larson <chris_larson@mentor.com>
Wed, 27 Apr 2016 23:23:58 +0000 (16:23 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:30:56 +0000 (10:30 +0100)
commitcf0c5175136966eefde8c0d9aa0679e85779f713
tree44ec14b91da2eb9860b736146defac6ed89c641b
parent04eca59068a79ae6a9969be495c4cdf0c5c3e466
scripts/lib/argparse_oe: show self.prog in the error message

This aligns our subclassed error() with that in the original class, using
_print_message and self.prog. Also add a docstring based on the original.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/argparse_oe.py