Sha256: f0caceadd7e72567e2d878f7552ed3e3d379a1236d64a3a02722e67d76186034
Contents?: true
Size: 539 Bytes
Versions: 19
Compression:
Stored size: 539 Bytes
Contents
RuboCop::Options.new.opts.instance_eval("@stack", __FILE__, __LINE__).map(&:list).flatten.each do |opt| short = opt.short.map { |arg| arg.delete_prefix("-") } long = opt.long.map { |arg| arg.delete_prefix("--") } short.unshift(nil) if opt.short.empty? long.unshift(nil) if opt.long.empty? if opt.arg option(*short, *long, opt.desc.join(" "), argument: :optional) do |value| r_args.append(*opt.long, value) end else flag(*short, *long, opt.desc.join(" ")) do r_args.append(*opt.long) end end end
Version data entries
19 entries across 19 versions & 1 rubygems