Method: Fission::CommandHelpers#parse_arguments

Defined in:
lib/fission/command_helpers.rb

#parse_argumentsObject

Internal: Parses the command line arguments.

Examples:

parse_arguments

Returns nothing. If there is an invalid argument, an error will be output and this will exit with exit code 1.



27
28
29
30
31
32
# File 'lib/fission/command_helpers.rb', line 27

def parse_arguments
  option_parser.parse! @args
rescue OptionParser::InvalidOption => e
  output e
  output_and_exit "\n#{self.class.help}", 1
end