Method: Argvector#subcommand_with_arguments

Defined in:
lib/supplemental/facets/argvector.rb

#subcommand_with_argumentsObject

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 = *parse_preoptions(argv)
  cmd = args.shift
  subargs = self.class.new(args, @arity)
  return cmd, subargs
end