diff options
| author | Christopher Larson <chris_larson@mentor.com> | 2016-04-27 16:23:59 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:31:13 +0100 |
| commit | 3e79d54523e348258cc7d9455376429ea57106f2 (patch) | |
| tree | 1da64324aad040d0abe75071c0a930a6aacbc51e /scripts/lib/recipetool/create_npm.py | |
| parent | 55c760bda391f8ac398aa078391a78415dd68a82 (diff) | |
| download | poky-3e79d54523e348258cc7d9455376429ea57106f2.tar.gz | |
scripts/lib/argparse_oe: show subparser help for unrecognized args
As an example, `recipetool create foo bar baz` shows `recipetool: error:
unrecognized arguments: bar baz` and then displays the main help, not the help
for the create command. Fix by saving the subparser name and using it in
parse_args() to look up the subparser.
(From OE-Core rev: 7fdaaedf4c63c8d019f03f84e22f9b838ef19aa6)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create_npm.py')
0 files changed, 0 insertions, 0 deletions
