Skip to content

Commit

Permalink
add the version flag to the commmand line tool
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdavey committed Feb 7, 2025
1 parent 774cc18 commit cd15e72
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion bin/vimwiki_markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env ruby
require 'vimwiki_markdown'

VimwikiMarkdown.convert_wikimarkdown_to_html
if ARGV.include?("--version") || ARGV.include?("-v")
puts "vimwiki_markdown #{VimwikiMarkdown::VERSION}"
exit 0
else
VimwikiMarkdown.convert_wikimarkdown_to_html
end

3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.9.3 [08 Feb 2025]
Add a --version flag to the command line tool

## 0.9.2 [02 April 2023]
Just bump activesupport version for security advisories

Expand Down
2 changes: 1 addition & 1 deletion lib/vimwiki_markdown/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module VimwikiMarkdown
VERSION = "0.9.2".freeze
VERSION = "0.9.3".freeze
end

0 comments on commit cd15e72

Please sign in to comment.