Ruby 2.4参考手册
OptionParser
OptionParser::Switch::NoArgument
父类:self
不带任何参数的开关。
公共类方法
incompatible_argument_styles(*) Show source
# File lib/optparse.rb, line 654
def self.incompatible_argument_styles(*)
end
pattern() Show source
# File lib/optparse.rb, line 657
def self.pattern
Object
end
公共实例方法
parse(arg, argv) { |NeedlessArgument, arg| ... } Show source
如果提供任何参数,则引发异常。
# File lib/optparse.rb, line 649
def parse(arg, argv)
yield(NeedlessArgument, arg) if arg
conv_arg(arg)
end
OptionParser相关
Ruby 是一种面向对象、命令式、函数式、动态的通用编程语言,是世界上最优美而巧妙的语言。
主页 | https://www.ruby-lang.org/ |
源码 | https://github.com/ruby/ruby |
版本 | 2.4 |
发布版本 | 2.4.1 |