class Fission::CLI

def execute

Returns nothing.

Fission::CLI.new(ARGV).execute

Examples:

Internal: Execute the determined command.
def execute
  @cmd.execute
end

def initialize(args=ARGV, parser=CommandLineParser)

Returns a Fission::CLI object.

Fission::CLI.new

Examples

and exit if applicable.
the arguments in ARGV. This will also automatically display the usage
Internal: Creates a new Fission::CLI object. This automatically parses
def initialize(args=ARGV, parser=CommandLineParser)
  @args = args ||= ARGV
  @parser = parser.new @args
  parse_arguments
end

def parse_arguments

Returns nothing.

@cli.parse_arguments

Examples:

Internal: Parses the arguments using the parser.
def parse_arguments
  @parser.parse
  @cmd = @parser.command
end