Skip to content

Extra arguments passed to non-variadic command are swallowed #749

@mojavelinux

Description

@mojavelinux

If an action-based command does not have a variadic argument, extra arguments supplied by the user are swallowed. I would expect either for the command to exit with an error, or for those extra arguments to be passed to the callback method so they can be handled appropriately.

The root of the problem is that the program is overwriting the extra entry in the args array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions