From: Paul Eggleton Date: Wed, 13 Nov 2013 14:32:38 +0000 (+0000) Subject: scripts/create-recipe: fix handling of --help X-Git-Tag: rev_ivi_2015_02_04~10396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0428fcb8cc4032ea60a365f534cf898a7b3df02;p=scm%2Fbb%2Ftizen-distro.git 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. (From OE-Core rev: abb139b10c3f431bcebb1847621f97d7ec6249ce) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/create-recipe b/scripts/create-recipe index 5613e92..b192990 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] \n"; exit(1); }