cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Looking for guidance for BINARY VERB NOUN [FLAGS] where [FLAGS] change based on NOUN

Open michaelajr opened this issue 11 months ago • 1 comments

I like the idea of BINARY VERB NOUN ....aka.... BINARY COMMAND ARG [FLAGS]...But in my case ARGs have discrete flags. So I have opted for BINARY COMMAND SUBCOMMAND [FLAGS] which does work fine, but I was wondering if there was a clean way within the cobra framework to set flags for an ARG.

michaelajr avatar Mar 13 '24 23:03 michaelajr

Also, valid args are not listed in the help. I think there is an issue for this already. This might be what keeps me using sub-commands.

michaelajr avatar Mar 14 '24 00:03 michaelajr