Skip to content

Commit c20a24c

Browse files
committed
Add options which display the version of ever2boost
1 parent 002f1cf commit c20a24c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/ever2boost/cli.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ def convert(path)
2525
filename = File.basename(path, '.enex')
2626
EnexConverter.convert(enex, output_dir, filename)
2727
end
28+
29+
map %w[--version -v] => :__print_version
30+
desc "--version, -v", "print the version"
31+
def __print_version
32+
puts Ever2boost::VERSION
33+
end
2834
end
2935
end

0 commit comments

Comments
 (0)