Sha256: b1d94ab715083b038d4c639a304c9e70e0f9a78bfc2bd1357e82b96864b63683
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module OptParseBuilder class SplatOperandArgument < Argument # :nodoc: include FormatsOperandName include HasValue def initialize(key, default, help_name) init_value(key, default) @help_name = help_name || key end def operand_notation "[<#{format_operand_name(@help_name)}>...]" end def shift_operand(argv) @value = argv.dup argv.clear end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opt_parse_builder-0.1.0 | lib/opt_parse_builder/splat_operand_argument.rb |