aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-11-13 14:32:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-14 13:37:29 +0000
commitabb139b10c3f431bcebb1847621f97d7ec6249ce (patch)
tree6b83eb617b75bfa837977134abde1e12670032ac /scripts
parent826f4e4057a221127ac4c1d0658d975032fc7d90 (diff)
downloadopenembedded-core-contrib-abb139b10c3f431bcebb1847621f97d7ec6249ce.tar.gz
scripts/create-recipe: fix handling of --help
If --help is specified as the first argument, show the standard help text instead of trying to process it as a URL. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-recipe2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-recipe b/scripts/create-recipe
index 5613e92cb9..b192990080 100755
--- a/scripts/create-recipe
+++ b/scripts/create-recipe
@@ -1794,7 +1794,7 @@ sub calculate_sums
# Main program
#
-if ( @ARGV < 1 ) {
+if ( @ARGV < 1 || $ARGV[0] eq "--help" ) {
print "Usage: $0 [-r] <url-of-source-tarballs>\n";
exit(1);
}