Best practices for running commands in debugger #673
Unanswered
austinhallett
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
The problem with the above code is that the when running it this way, as one may do for debugging purposes, the default arguments are not evaluated to their raw value, but instead are instances of the typer.Option object which will break any logic within the command function that expects a string.
I understand one alternative is to use typer.run(test_command) however with this option, you are unable to provide any arguments.
So my question is really what are the best practices for running commands within the debugger in which both default arguments work, and I am able to pass in arguments as well
Operating System
macOS
Operating System Details
No response
Typer Version
0.9.0
Python Version
3.11.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions