define Version so that it's picked by OptParser for --version
This commit is contained in:
parent
aacb10de95
commit
1630622f51
1 changed files with 2 additions and 0 deletions
2
bin/rpl
2
bin/rpl
|
@ -54,6 +54,8 @@ options = { run_REPL: ARGV.empty?,
|
|||
files: [],
|
||||
programs: [] }
|
||||
|
||||
Version = '0.10.1'
|
||||
|
||||
OptionParser.new do |opts|
|
||||
opts.on('-s', "--state filename", "persist state in filename (default: #{options[:persistence_filename]}) (will be created if needed)") do |filename|
|
||||
options[:persistence_filename] = File.expand_path( filename )
|
||||
|
|
Loading…
Reference in a new issue