summaryrefslogtreecommitdiff
path: root/doc/optparse/ruby/help_program_name.rb
diff options
context:
space:
mode:
authorBurdette Lamar <[email protected]>2021-04-12 20:33:19 -0500
committerHiroshi SHIBATA <[email protected]>2021-07-28 20:13:39 +0900
commit43af561e0878ca856513edd3db56ce7dff8e7fe3 (patch)
treec66777128f3d338fd89d67a3bdacb17b4bed2dd3 /doc/optparse/ruby/help_program_name.rb
parenta15f0b9fe24c3488ca69171c147a8648b55c8fbc (diff)
[ruby/optparse] Rdoc for help (https://github.com/ruby/optparse/pull/21)
https://github.com/ruby/optparse/commit/d07cb96a96
Diffstat (limited to 'doc/optparse/ruby/help_program_name.rb')
-rw-r--r--doc/optparse/ruby/help_program_name.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/optparse/ruby/help_program_name.rb b/doc/optparse/ruby/help_program_name.rb
new file mode 100644
index 0000000000..7b3fbff067
--- /dev/null
+++ b/doc/optparse/ruby/help_program_name.rb
@@ -0,0 +1,7 @@
+require 'optparse'
+parser = OptionParser.new
+parser.program_name = 'help_program_name.rb'
+parser.parse!
+
+
+