From aedfc5a5db1c4b2b80a36147c9a13b31764d91dd Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 22 Dec 2015 17:03:11 +1300 Subject: 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 Signed-off-by: Richard Purdie --- scripts/devtool | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/devtool') 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 -- cgit 1.2.3-korg