Mercurial > hg > chronicle
diff bin/chronicle-rss-importer @ 257:389f234d4111
Failure to parse options should make the script exit
author | Steve Kemp <steve@steve.org.uk> |
---|---|
date | Wed, 18 Jun 2008 21:58:16 +0100 |
parents | fdbbc1bb5d7c |
children |
line wrap: on
line diff
--- a/bin/chronicle-rss-importer Tue Jun 03 21:48:39 2008 +0100 +++ b/bin/chronicle-rss-importer Wed Jun 18 21:58:16 2008 +0100 @@ -62,13 +62,17 @@ sub parseCommandLineArguments { - GetOptions( + if ( + !GetOptions( - # Help options - "feed=s", \$CONFIG{ 'feed' }, - "output=s", \$CONFIG{ 'output' }, - "sequential", \$CONFIG{ 'sequential' }, - ); + "feed=s", \$CONFIG{ 'feed' }, + "output=s", \$CONFIG{ 'output' }, + "sequential", \$CONFIG{ 'sequential' }, + ) + ) + { + exit; + } }