cli icon indicating copy to clipboard operation
cli copied to clipboard

Handling non-parsed flags

Open mwriter opened this issue 1 month ago • 0 comments

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.

mwriter avatar Dec 09 '25 21:12 mwriter