Command Group and Command With the Same Name #895
Unanswered
Coder101-byte
asked this question in
Questions
Replies: 1 comment
-
#18 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I would like to be able to run
programName command --option1 value1
programName command subcommand --option2 value2
The best workaround for this I've seen is using contexts and callbacks, but it would be better if I could do something like in the code above. I tried to use a callback to achieve this and I get the error "Missing option '--option1'."
Operating System
macOS
Operating System Details
No response
Typer Version
0.12.3
Python Version
3.12.4
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions