首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

OptionParser::Switch::NoArgument

父类:self

不带任何参数的开关。

公共类方法

incompatible_argument_styles(*) Show source

代码语言:javascript
复制
# File lib/optparse.rb, line 654
def self.incompatible_argument_styles(*)
end

pattern() Show source

代码语言:javascript
复制
# File lib/optparse.rb, line 657
def self.pattern
  Object
end

公共实例方法

parse(arg, argv) { |NeedlessArgument, arg| ... } Show source

如果提供任何参数,则引发异常。

代码语言:javascript
复制
# File lib/optparse.rb, line 649
def parse(arg, argv)
  yield(NeedlessArgument, arg) if arg
  conv_arg(arg)
end

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com