Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michaelajr opened this issue Mar 13, 2024 · 1 comment

Comments

@michaelajr
Copy link

michaelajr commented Mar 13, 2024

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
Copy link
Author

michaelajr commented Mar 14, 2024

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 michaelajr changed the title Looking for guidance for CMD VERB NOUN where FLAGS can change based on NOUN Looking for guidance for BINARY VERB NOUN [FLAGS] where [FLAGS] change based on NOUN Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant