Skip to content

parameter is nil when single dash argument provided #27

@dannypurcell

Description

@dannypurcell

For some reason a method with a non-defaulted parameter on the end receives nil when a single dash is given for the last argument on the command line.

Example:

def test(a, b, c)
  puts "a=#{a}, b=#{b}, c=#{c}"
end

Command Line:

test 1 2 -

Expected:

"a=1, b=2, c=-"

Actual:

"a=1, b=2, c=nil"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions