Replies: 1 comment
-
I agree, I was also catched off-guard by this. I simply had list[str] that was not a path, but * were expanded (to empty strings). |
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
Currently it is impossible to globally disable
windows_expand_args
option implemented in click, the only solution I found is the code above. I found this feature quite questionable, since it can expand arbitrary string even if it was encapsulated in quotation marks or special characters were escaped.one common example is invoking app with
--name "local/path/*"
where my argument gets expanded to a list of paths containing all of the files.Since this behaviour is completely unexpected and difficult to track down, I think it is at least worth mentioning in the documentation of typer, even better if it was possible to disable it.
Operating System
Windows
Operating System Details
No response
Typer Version
0.13.0
Python Version
3.11.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions