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

    area/v4Major release v4area/vNextNext major version of the releasekind/featuredescribes a code enhancement / feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions