class Fission::CLI
def execute
Fission::CLI.new(ARGV).execute
Examples:
Internal: Execute the determined command.
def execute @cmd.execute end
def initialize(args=ARGV, parser=CommandLineParser)
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
@cli.parse_arguments
Examples:
Internal: Parses the arguments using the parser.
def parse_arguments @parser.parse @cmd = @parser.command end