Skip to content

"to_end" positional_arg's shouldn't include other types of arguments (switch, arg, etc.) #9

@mdwagner

Description

@mdwagner

Getting this weird behavior where positional_arg with to_end: true will include all arguments before or after the positional argument.

Ex (other args before positional):

$ lucky importmap.pin --download -e production -f jspm react react-dom
download? # => true
env # => "production"
from # => "jspm"
packages # => ["--download", "-e", "production", "-f", "jspm", "react", "react-dom"]

Ex (other args after postional):

$ lucky importmap.pin react react-dom --download -e production -f jspm
download? # => true
env # => "production"
from # => "jspm"
packages # => ["react", "react-dom", "--download", "-e", "production", "-f", "jspm"]

If both aren't allowed, then at least the one before the positional_arg should work.
Expected:

$ lucky importmap.pin --download -e production -f jspm react react-dom
download? # => true
env # => "production"
from # => "jspm"
packages # => ["react", "react-dom"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions