Skip to content

Commit cd15e72

Browse files
committed
add the version flag to the commmand line tool
1 parent 774cc18 commit cd15e72

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

bin/vimwiki_markdown

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env ruby
22
require 'vimwiki_markdown'
33

4-
VimwikiMarkdown.convert_wikimarkdown_to_html
4+
if ARGV.include?("--version") || ARGV.include?("-v")
5+
puts "vimwiki_markdown #{VimwikiMarkdown::VERSION}"
6+
exit 0
7+
else
8+
VimwikiMarkdown.convert_wikimarkdown_to_html
9+
end
510

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.9.3 [08 Feb 2025]
2+
Add a --version flag to the command line tool
3+
14
## 0.9.2 [02 April 2023]
25
Just bump activesupport version for security advisories
36

lib/vimwiki_markdown/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module VimwikiMarkdown
2-
VERSION = "0.9.2".freeze
2+
VERSION = "0.9.3".freeze
33
end

0 commit comments

Comments
 (0)