Sha256: 3d37c65fb4e8b1dfea6d3dedb88ff97f5aa6d01541ba4826c1569b67b0a31d17

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require 'optiflag'

# Example 6:  Using Hash Access
module HashAcess extend OptiFlag::Flagset
  flag "dir"
  flag "log_level"
  
  handle_errors_and_help
end 

puts "Dir is: #{ ARGV.flag_value[:dir] }"
puts "Log Level is: #{ ARGV.flag_value[:log_level] }"

#h# ruby example_6.rb -dir "c:/Program Files/Apache Software Foundation/Tomcat 5/" -log_level 3



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
optiflag-0.6 doc/example/example_6.rb