Method: Argvector#initialize
- Defined in:
- lib/supplemental/facets/argvector.rb
#initialize(line = nil, arity = nil) ⇒ Argvector
Takes the command line string (or array) and options. Options have flags and end with a hash of option arity.
81 82 83 84 85 |
# File 'lib/supplemental/facets/argvector.rb', line 81 def initialize(line=nil, arity=nil) @line, @argv = parse_line(line) @arity = parse_arity(arity||{}) parse end |