diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-20 13:41:02 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-20 13:41:02 +0000 |
commit | b4489ae953601cceb30e5dbdac5fe213ecad1b75 (patch) | |
tree | 0e8bea2d6e4a0cdfc900c835653a83a2637ff740 /sample/optparse/opttest.rb | |
parent | 368cecc1517ba2a09b0413eeaf5c3ba9981de4db (diff) |
* sample/*: whitespace patch by Sergio Campama [Fixes GH-364]
https://github.com/ruby/ruby/pull/364
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/optparse/opttest.rb')
-rwxr-xr-x | sample/optparse/opttest.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sample/optparse/opttest.rb b/sample/optparse/opttest.rb index 9247af494f..6f80a85e5d 100755 --- a/sample/optparse/opttest.rb +++ b/sample/optparse/opttest.rb @@ -22,13 +22,13 @@ ARGV.options do # mandatory argument opts.on("-r", "--require=LIBRARY", String, - "require the LIBRARY, before", - "executing your script") {|lib|@library=lib} + "require the LIBRARY, before", + "executing your script") {|lib|@library=lib} # optional argument opts.on("-i", "--inplace=[EXTENSION]", - "edit ARGV files in place", # multiline description - "(make backup if EXTENSION supplied)") {|inplace| @inplace = inplace || ''} + "edit ARGV files in place", # multiline description + "(make backup if EXTENSION supplied)") {|inplace| @inplace = inplace || ''} opts.on("-N=[NUM]", Integer) {|num|@number=num} @@ -37,7 +37,7 @@ ARGV.options do # limit argument syntax opts.on("-[0-7]", "-F", "--irs=[OCTAL]", OptionParser::OctalInteger, - "specify record separator", "(\\0, if no argument)") {|irs|@irs=irs} + "specify record separator", "(\\0, if no argument)") {|irs|@irs=irs} # boolean switch(default true) @exec = true @@ -51,7 +51,7 @@ ARGV.options do # keyword completion opts.on("--code=CODE", CODES, CODE_ALIASES, "select coding system", - "("+CODES.join(",")+",", " "+CODE_ALIASES.keys.join(",")+")") {|c|@code=c} + "("+CODES.join(",")+",", " "+CODE_ALIASES.keys.join(",")+")") {|c|@code=c} # optional argument with keyword completion opts.on("--type[=TYPE]", [:text, :binary], "select type(text, binary)") {|t|@type=t} |