Is there a way to put global options and subcommand options in any place? #1123
Unanswered
chenzhiwei
asked this question in
Questions
Replies: 0 comments
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
In above code, the
username
,password
andhost
are global options and can only place it after the main program.Is there a way to put them after arguments or subcommands, like
kubectl
:Operating System
Linux
Operating System Details
No response
Typer Version
0.15.1
Python Version
Python 3.13.1
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions