Sha256: aee2fd4f1b6f327147936b0402d0a00fcccf43255429a36f7de14f065ad8dd43

Contents?: true

Size: 613 Bytes

Versions: 13

Compression:

Stored size: 613 Bytes

Contents

require 'optparse'
parser = OptionParser.new(
  'ruby help_format.rb [options]', # Banner
  20,                               # Width of options field
  ' ' * 2                               # Indentation
)
parser.on(
  '-x', '--xxx',
  'Adipiscing elit. Aenean commodo ligula eget.',
  'Aenean massa. Cum sociis natoque penatibus',
  )
parser.on(
  '-y', '--yyy YYY',
  'Lorem ipsum dolor sit amet, consectetuer.'
)
parser.on(
  '-z', '--zzz [ZZZ]',
  'Et magnis dis parturient montes, nascetur',
  'ridiculus mus. Donec quam felis, ultricies',
  'nec, pellentesque eu, pretium quis, sem.',
  )
parser.parse!



Version data entries

13 entries across 13 versions & 3 rubygems

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