Method: Argvector#subcommand_with_arguments
- Defined in:
- lib/supplemental/facets/argvector.rb
#subcommand_with_arguments ⇒ Object
Assumes the first operand is a “subcommand” and returns it and the argments following it as another Arguments object.
TODO: This probably should be called ‘subcommand’.
146 147 148 149 150 151 |
# File 'lib/supplemental/facets/argvector.rb', line 146 def subcommand_with_arguments opts, args = *(argv) cmd = args.shift = self.class.new(args, @arity) return cmd, end |