Module: Loops::CLI::Options::ClassMethods

Defined in:
lib/loops/cli/options.rb

Instance Method Summary collapse

Instance Method Details

#parse(args) ⇒ CLI

Return a new Loops::CLI instance with the given arguments pre-parsed and ready for execution.

Parameters:

  • args (Array<String>)

    an Array of options.

Returns:

  • (CLI)

    an instance of Loops::CLI with the given arguments pre-parsed.



27
28
29
30
31
# File 'lib/loops/cli/options.rb', line 27

def parse(args)
  cli = new(args)
  cli.parse_options!
  cli
end