summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-21 12:03:40 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-21 12:03:40 +0200
commit39be1d919ace678944647e252ea123c2c0ed79a4 (patch)
tree0e1ced8f4d8a0491a45e466b64dfc2abf3c8fbdf
parent79f13396e865e4fffaf6bcc0aa07b1003fa6c569 (diff)
efa: Improved --ignore-info handling
-rwxr-xr-xbin/efa8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/efa b/bin/efa
index 2b5d604..ead1896 100755
--- a/bin/efa
+++ b/bin/efa
@@ -125,7 +125,7 @@ GetOptions(
'exclude=s' => \@exclude,
'from=s{2}' => \@from,
'help' => sub {exec('perldoc', $0)},
- 'ignore-info=s' => \$ignore_info,
+ 'ignore-info=s{0,1}' => \$ignore_info,
'max-change=i' => \$maxinter,
'post=s' => \%post,
'prefer=s' => \$prefer,
@@ -401,9 +401,11 @@ All trains
Set your walking speed to I<speed>.
Accepted values: normal (default), fast, slow
-=item B<--ignore-info> I<regex>
+=item B<--ignore-info> [ I<regex> ]
-Ignore additional information matching I<regex> (default: /Fahrradmitnahme/)
+Ignore additional information matching I<regex> (default: /Fahrradmitnahme/).
+
+If I<regex> is not supplied, removes the default regex (-> nothing will be ignored)
=item B<--debug>