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
Hi, I was trying to find a way to set a default command in typer and I encountered your post. You may be interested in the fact that the solution provided in /99999976-python-typer-set-default-command.md does not work does allow you to have one command to be executed without specifying the command name (good), but has the problem that it will be always executed. That is, if you just want to execute bar you cannot.
In your case, if you try to execute the bar command, one would expect to see just the ouput of the bar command i.e.,
I'm just here to mess things up...
while it currently outputs:
None, None, None
I'm just here to mess things up...
which is te combination of foo and bar.
BTW, if you happen to know how to solve this, I would love to learn it 😊
Best,
Roberto
The text was updated successfully, but these errors were encountered:
Hi, I was trying to find a way to set a default command in typer and I encountered your post. You may be interested in the fact that the solution provided in
/99999976-python-typer-set-default-command.md does not work
does allow you to have one command to be executed without specifying the command name (good), but has the problem that it will be always executed. That is, if you just want to executebar
you cannot.In your case, if you try to execute the
bar
command, one would expect to see just the ouput of thebar
command i.e.,while it currently outputs:
which is te combination of
foo
andbar
.BTW, if you happen to know how to solve this, I would love to learn it 😊
Best,
Roberto
The text was updated successfully, but these errors were encountered: