Permalink
Browse files

Stop on ambiguous options

Resolves GH #6
  • Loading branch information...
1 parent dc9a6bf commit a4df286ccc018cdc6ef3390ab0e8a41c9ee70395 @doherty committed Feb 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/log
View
@@ -38,10 +38,10 @@ GetOptions( \%opts,
'user:s',
'refresh-index',
'udp!',
-);
+) or exit;
my %udp_data = ( irc => 1, port => 9002, host => 'localhost' );
-GetOptions( 'udp-data=s' => \%udp_data);
+GetOptions( 'udp-data=s' => \%udp_data) or exit;
$opts{udp} = \%udp_data if $opts{udp};
=head1 SYNOPSIS

0 comments on commit a4df286

Please sign in to comment.