Skip to content

Multiple (variadic) options support? #124

Closed
@boxsnake

Description

@boxsnake

Good project.

I am wondering if there is anyway to implement something like variadic in options rather than arguments?

Such as:

php foo.php --bar 1 --bar 2

which gives:

Array (
  [bar] => Array(
    [0] => 1,
    [1] => 2,
  )
)

Thanks.

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