define Version so that it's picked by OptParser for --version

This commit is contained in:
Gwenhael Le Moine 2022-10-04 17:10:00 +02:00
parent aacb10de95
commit 1630622f51
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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 )