There's no built-in way to rename an argument. Plus metavar
param probably should change only the type representation of an argument.
#845
Unanswered
vladhaidukkk
asked this question in
Questions
Replies: 1 comment
-
I'm also looking to understand how to do this. I don't like that my arguments use underscores and my options use hyphens. |
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 need a way to rename the argument from id_ to id in the help message. Additionally, it should be displayed in uppercase in the usage section. I've found a recommendation to use
metavar
for this, but it changes the type representation of the argument and how it's displayed in the usage section, which is not what I need.I'd like to have a
name
parameter for this in theArgument
.Operating System
macOS
Operating System Details
No response
Typer Version
0.12.3
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions