diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-12-22 17:03:11 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-28 09:25:14 +0000 |
commit | 110f4337f2bd12ecbfd91b222af1baad3a14788a (patch) | |
tree | e98740bea214a85629e615ee27dadf2fe0eedc00 /scripts/devtool | |
parent | ceaa4bfd0942c2f68930a9a82d3bff3a9c2db32b (diff) | |
download | poky-110f4337f2bd12ecbfd91b222af1baad3a14788a.tar.gz |
devtool: add: allow specifying URL as positional argument
Having to specify -f is a little bit ugly when a URI is distinctive
enough to recognise amongst the other positional parameters, so take it
as an optional positional parameter. -f/--fetch is still supported, but
deprecated.
(From OE-Core rev: aedfc5a5db1c4b2b80a36147c9a13b31764d91dd)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-x | scripts/devtool | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/devtool b/scripts/devtool index 955495ea33..93ba58e7a9 100755 --- a/scripts/devtool +++ b/scripts/devtool | |||
@@ -280,6 +280,8 @@ def main(): | |||
280 | if str(err): | 280 | if str(err): |
281 | logger.error(str(err)) | 281 | logger.error(str(err)) |
282 | ret = 1 | 282 | ret = 1 |
283 | except argparse_oe.ArgumentUsageError as ae: | ||
284 | parser.error_subcommand(ae.message, ae.subcommand) | ||
283 | 285 | ||
284 | return ret | 286 | return ret |
285 | 287 | ||