summaryrefslogtreecommitdiff
path: root/scripts/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-12-22 17:03:11 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-22 16:44:03 +0000
commitaedfc5a5db1c4b2b80a36147c9a13b31764d91dd (patch)
tree548446ec57a61847b87fc527a61abbcd09f36117 /scripts/devtool
parent70ab08146e930f1fc55fdf5726a87303e20bd60f (diff)
downloadopenembedded-core-aedfc5a5db1c4b2b80a36147c9a13b31764d91dd.tar.gz
openembedded-core-aedfc5a5db1c4b2b80a36147c9a13b31764d91dd.tar.bz2
openembedded-core-aedfc5a5db1c4b2b80a36147c9a13b31764d91dd.zip
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. 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-xscripts/devtool2
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():
if str(err):
logger.error(str(err))
ret = 1
+ except argparse_oe.ArgumentUsageError as ae:
+ parser.error_subcommand(ae.message, ae.subcommand)
return ret