Sha256: f88ed08d7a984d3bec0e20ed9f048e2131cfb7d95828b5c8177be38cfa8f8ffc

Contents?: true

Size: 380 Bytes

Versions: 12

Compression:

Stored size: 380 Bytes

Contents

Creates an option from the given parameters +params+.
See {Parameters for New Options}[optparse/option_params.rdoc].

The block, if given, is the handler for the created option.
When the option is encountered during command-line parsing,
the block is called with the argument given for the option, if any.
See {Option Handlers}[optparse/option_params.rdoc#label-Option+Handlers].

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
optparse-0.6.0 doc/optparse/creates_option.rdoc
optparse-0.5.0 doc/optparse/creates_option.rdoc
cli-option_parser.rb-0.6.0 doc/optparse/creates_option.rdoc
cli-option_parser.rb-0.5.3 doc/optparse/creates_option.rdoc
cli-option_parser.rb-0.5.2 doc/optparse/creates_option.rdoc
cmd-optparse.rb-0.5.2 doc/optparse/creates_option.rdoc
cmd-optparse.rb-0.5.0 doc/optparse/creates_option.rdoc
cmd-optparse.rb-0.1.1 doc/optparse/creates_option.rdoc
cmd-optparse.rb-0.1.0 doc/optparse/creates_option.rdoc
optparse-0.4.0 doc/optparse/creates_option.rdoc
optparse-0.3.1 doc/optparse/creates_option.rdoc
optparse-0.3.0 doc/optparse/creates_option.rdoc