update
This commit is contained in:
parent
045864495f
commit
757921be5b
4 changed files with 94 additions and 29 deletions
1
bin/dat
1
bin/dat
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue