Method: Ark::CLI::Option#full?

Defined in:
lib/ark/cli/option.rb

#full?Boolean

True if this option has received all the arguments it expects, or if this option expects no arguments

Returns:

  • (Boolean)


43
44
45
46
47
48
49
# File 'lib/ark/cli/option.rb', line 43

def full?
  if self.flag?
    return true
  else
    return (@args.length - @arg_index) < 1
  end
end