summaryrefslogtreecommitdiff
path: root/doc/optparse/ruby/help_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/optparse/ruby/help_format.rb')
-rw-r--r--doc/optparse/ruby/help_format.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/doc/optparse/ruby/help_format.rb b/doc/optparse/ruby/help_format.rb
deleted file mode 100644
index a2f1e85b00..0000000000
--- a/doc/optparse/ruby/help_format.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-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!
-
-
-