Sha256: 3640c3723a3c5f435c1403a77fbb55820b7028a6b2c9d65b32a170111513678a
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
require 'optiflag' # Example 2.1: # Variation 1: Using an extended usage flag module Example extend OptiFlag::Flagset flag "dir" optional_flag "log" flag "username" flag "password" usage_flag "h","help","?" extended_help_flag "superhelp" handle_errors_and_help end #h# ruby example_2_1.rb -superhelp --dir directory --username me --password fluffy # ruby example_2_1.rb -superhelp --dir directory --username me --password fluffy # ruby example_2_1.rb -superhelp --dir directory --username me --password fluffy # ruby example_2_1.rb -superhelp --dir directory --username me # ruby example_2_1.rb -superhelp --dir directory # ruby example_2_1.rb -superhelp #h# ruby example_2_1.rb --superhelp
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
optiflag-0.6 | doc/example/example_2_1.rb |