Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/99999976-python-typer-set-default-command.md does not work #193

Open
boborbt opened this issue Jan 22, 2025 · 0 comments
Open

/99999976-python-typer-set-default-command.md does not work #193

boborbt opened this issue Jan 22, 2025 · 0 comments

Comments

@boborbt
Copy link

boborbt commented Jan 22, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant