-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels