This commit is contained in:
Artur Gurgul1 2025-08-06 10:17:48 +02:00
parent 045864495f
commit 757921be5b
4 changed files with 94 additions and 29 deletions

View file

@ -12,6 +12,7 @@ options = OpenStruct.new
# take the first so OptionParser will not see it
subcommand = ARGV.shift&.to_sym
options.name = ARGV[0] && ARGV[0] !~ /^-/ ? ARGV.shift : nil
OptionParser.new do |opt|
opt.on('-i', '--install', 'Install dat for the user') { |o| options.type = :install }