Class: Ecogem::Cli::Args

Inherits:
Object
  • Object
show all
Defined in:
lib/ecogem/cli/args.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Args

Returns a new instance of Args.



6
7
8
9
# File 'lib/ecogem/cli/args.rb', line 6

def initialize(argv)
  @argv = argv.dup
  parse
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



4
5
6
# File 'lib/ecogem/cli/args.rb', line 4

def command
  @command
end

Instance Method Details

#bundler_argsObject



15
16
17
# File 'lib/ecogem/cli/args.rb', line 15

def bundler_args
  @argv
end

#optionsObject



11
12
13
# File 'lib/ecogem/cli/args.rb', line 11

def options
  @options ||= {}
end