summaryrefslogtreecommitdiffstats
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
commita792772575222cad7264e5ac7c25798495c585d4 (patch)
tree38a4b52687f7400becfb8f45de57d5a0204c8cf8 /lib/getoptlong.rb
parent4a1491bf005b6314b3a99811bb8c717bc43b837a (diff)
downloadruby-a792772575222cad7264e5ac7c25798495c585d4.tar.gz
ruby-a792772575222cad7264e5ac7c25798495c585d4.tar.xz
ruby-a792772575222cad7264e5ac7c25798495c585d4.zip
Remove lib/rdoc/usage.rb
git-svn-id: http://svn.ruby-lang.org/repos/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 ba9ca3742..3ebbf3b1b 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'