summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-12-19 15:07:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-12-19 15:07:31 +0100
commit4df89c1057213ce792e6bb8337fb3d0310d74529 (patch)
tree7db3ba26ac830e55d50bbdb8f8a898c33a016d6c
parent4b5f3cc16d56ac7620a001fe5066f17ca8fb7309 (diff)
hashl: Option to change read_size
-rwxr-xr-xbin/hashl3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hashl b/bin/hashl
index 2091d3f..d0ecddf 100755
--- a/bin/hashl
+++ b/bin/hashl
@@ -27,7 +27,8 @@ my $VERSION = '0.1';
my $db;
GetOptions(
- 'd|database=s' => \$db_file,
+ 'd|database=s' => \$db_file,
+ 's|read-size=d' => sub { $read_size = $_[0] * 1024 },
);
if (substr($db_file, 0, 1) ne '/') {