summaryrefslogtreecommitdiff
path: root/bin/hashl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hashl')
-rwxr-xr-xbin/hashl5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/hashl b/bin/hashl
index 5c386a4..35891f1 100755
--- a/bin/hashl
+++ b/bin/hashl
@@ -37,6 +37,7 @@ GetOptions(
'd|database=s' => \$db_file,
'n|no-progress' => sub { $show_progress = 0 },
's|read-size=i' => sub { $read_size = $_[1] * 1024 },
+ 'V|version' => sub { say "hashl version ${VERSION}"; exit 0 },
) or usage();
if (substr($db_file, 0, 1) ne '/') {
@@ -485,6 +486,10 @@ Change size of the part of each file which is hashed. By default, B<hashl>
hashes the first 4 MiB. Note that this option only makes sense when using C<<
hashl update >> to create a new database.
+=item B<-V>|B<--version>
+
+Print version information.
+
=back
=head1 CONFIGURATION