Skip to content

Commit

Permalink
Use semver and add version CLI flag
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-lava committed Oct 10, 2023
1 parent f31d4c3 commit 7f179f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cli.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
local argparse = require 'argparse'
local parser = argparse()

parser:flag '-v --version':action(function()
print('Sound Maker version ' .. VERSION)
os.exit()
end)
parser:flag '--moonscript' :default(false):hidden(true)
parser:flag('--hint-overlay', 'Show a text overlay with some hotkeys (default)')
parser:flag(
Expand Down
2 changes: 1 addition & 1 deletion conf.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = '0.6'
VERSION = '0.1.0'

require 'cli'

Expand Down

0 comments on commit 7f179f4

Please sign in to comment.