cobra
cobra copied to clipboard
Looking for guidance for BINARY VERB NOUN [FLAGS] where [FLAGS] change based on NOUN
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.
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.