Mercurial > hg > chronicle
comparison 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 |
comparison
equal
deleted
inserted
replaced
256:5ea9f2d8bd8e | 257:389f234d4111 |
---|---|
60 | 60 |
61 =cut | 61 =cut |
62 | 62 |
63 sub parseCommandLineArguments | 63 sub parseCommandLineArguments |
64 { | 64 { |
65 GetOptions( | 65 if ( |
66 | 66 !GetOptions( |
67 # Help options | 67 |
68 "feed=s", \$CONFIG{ 'feed' }, | 68 "feed=s", \$CONFIG{ 'feed' }, |
69 "output=s", \$CONFIG{ 'output' }, | 69 "output=s", \$CONFIG{ 'output' }, |
70 "sequential", \$CONFIG{ 'sequential' }, | 70 "sequential", \$CONFIG{ 'sequential' }, |
71 ); | 71 ) |
72 ) | |
73 { | |
74 exit; | |
75 } | |
72 } | 76 } |
73 | 77 |
74 | 78 |
75 | 79 |
76 =begin doc | 80 =begin doc |