summaryrefslogtreecommitdiff
path: root/lib/getoptlong.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-11 09:31:15 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-11 09:31:15 +0000
commit7e6cf122efcea0aceda17feff2614fe6cda491c5 (patch)
tree38a4b52687f7400becfb8f45de57d5a0204c8cf8 /lib/getoptlong.rb
parentb5417ef56d8706cd340f7c6c97a73dfbae3b3833 (diff)
Remove lib/rdoc/usage.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/getoptlong.rb')
-rw-r--r--lib/getoptlong.rb34
1 files changed, 14 insertions, 20 deletions
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index ba9ca3742a..3ebbf3b1b6 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -24,25 +24,6 @@
#
# Here is a simple example of usage:
#
-# # == Synopsis
-# #
-# # hello: greets user, demonstrates command line parsing
-# #
-# # == Usage
-# #
-# # hello [OPTION] ... DIR
-# #
-# # -h, --help:
-# # show help
-# #
-# # --repeat x, -n x:
-# # repeat x times
-# #
-# # --name [name]:
-# # greet user by name, if name not supplied default is John
-# #
-# # DIR: The directory in which to issue the greeting.
-#
# require 'getoptlong'
# require 'rdoc/usage'
#
@@ -58,7 +39,20 @@
# opts.each do |opt, arg|
# case opt
# when '--help'
-# RDoc::usage
+# puts <<-EOF
+# hello [OPTION] ... DIR
+#
+# -h, --help:
+# show help
+#
+# --repeat x, -n x:
+# repeat x times
+#
+# --name [name]:
+# greet user by name, if name not supplied default is John
+#
+# DIR: The directory in which to issue the greeting.
+# EOF
# when '--repeat'
# repetitions = arg.to_i
# when '--name'