diff options
author | Eric Wong <e@80x24.org> | 2015-08-18 03:17:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-18 03:17:43 +0000 |
commit | db461727220a3d6724bfb5b9e60f4a4401699d0d (patch) | |
tree | 92e095a00380120e741d46af8a47d52c55308f48 /public-inbox-index | |
parent | 64ed451c683eba28e5b9ab4b750e9bcec2f33c97 (diff) | |
download | public-inbox-db461727220a3d6724bfb5b9e60f4a4401699d0d.tar.gz |
I often forget how to use this myself :x
Diffstat (limited to 'public-inbox-index')
-rwxr-xr-x | public-inbox-index | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/public-inbox-index b/public-inbox-index index 2fcf5627..1104bbc8 100755 --- a/public-inbox-index +++ b/public-inbox-index @@ -17,11 +17,11 @@ if ($@) { } sub usage { print STDERR "Usage: $usage\n"; exit 1 } -if (@ARGV) { - foreach my $dir (@ARGV) { - index_dir($dir); - } -}; +usage() unless @ARGV; + +foreach my $dir (@ARGV) { + index_dir($dir); +} sub index_dir { my ($git_dir) = @_; |