Skip to content

Handling non-parsed flags #2240

@mwriter

Description

@mwriter

I need to make that all non-parsed flags are treated as Args.
If run it as
someCmd --knownFlag --unknownFlag
then
Incorrect Usage: flag provided but not defined: --unknownFlag
But if run it as
someCmd --defFlag -- --unknownFlag
then it works as it should.
However, I would like to avoid using --.
The option SkipFlagParsing cancels all automatic parsing altogether, and this isn't a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions