You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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