diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-11-13 14:32:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-14 13:37:29 +0000 |
commit | abb139b10c3f431bcebb1847621f97d7ec6249ce (patch) | |
tree | 6b83eb617b75bfa837977134abde1e12670032ac /scripts | |
parent | 826f4e4057a221127ac4c1d0658d975032fc7d90 (diff) | |
download | openembedded-core-abb139b10c3f431bcebb1847621f97d7ec6249ce.tar.gz openembedded-core-abb139b10c3f431bcebb1847621f97d7ec6249ce.tar.bz2 openembedded-core-abb139b10c3f431bcebb1847621f97d7ec6249ce.zip |
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-x | scripts/create-recipe | 2 |
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); } |