Make script stop execution after help is displayed if --help
authorDario Sestito <darios@symbian.org>
Mon, 19 Oct 2009 12:24:43 +0100
changeset 693 9f583ada8e4e
parent 692 44d78dcb0be2
child 694 260b05585dc3
Make script stop execution after help is displayed if --help
common/tools/generate_diamonds_tags_xml.pl
--- a/common/tools/generate_diamonds_tags_xml.pl	Mon Oct 19 12:23:25 2009 +0100
+++ b/common/tools/generate_diamonds_tags_xml.pl	Mon Oct 19 12:24:43 2009 +0100
@@ -29,6 +29,7 @@
 if ($help or !$outputfile)
 {
 	print "Usage: perl generate_diamonds_tags_xml.pl --tags COMMA_SEPARATED_TAG_LIST --output OUTPUT_FILE\n";
+	exit(0);
 }
 
 open(FILE, ">$outputfile");