lib/clin/argument.rb
# Call when the argv is empty.
# Will return nil, [] if the argument is optional
# Will fail otherwise:
# * MissingArgumentError if the argument is a variable(e.g. <arg>)
# * FixedArgumentError if the argument is fixed(e.g. display)
Call when the argv is empty.
Will return nil, [] if the argument is optional
Will fail otherwise:
MissingArgumentError if the argument is a variable
FixedArgumentError if the argument is fixed
Call when the argv is empty . Will return nil [] if the argument is optional Will fail otherwise : MissingArgumentError if the argument is a variable FixedArgumentError if the argument is fixed
def handle_empty
    return nil, [] if optional
    if @variable
      fail Clin::MissingArgumentError, @name
    else
      fail Clin::RequiredArgumentError, @name
    end
  end
def handle_empty return nil , [ ] if optional if @variable fail Clin :: MissingArgumentError , @name else fail Clin :: RequiredArgumentError , @name end end
Call when the argv is empty.
Call when the argv is empty .