Skip to content

fix(cli): allow options after project directory - #241

Merged
ulises-jeremias merged 2 commits into
mainfrom
fix/cli-options-after-project-dir
Jul 22, 2026
Merged

fix(cli): allow options after project directory#241
ulises-jeremias merged 2 commits into
mainfrom
fix/cli-options-after-project-dir

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • Fix uvx create-awesome-python-app my-api --template … failing with No such command '--template'
  • Root cause: Typer Group + nested cache command made Click parse options after the project dir as subcommands
  • Scaffold is now a single TyperCommand; cache still routed via main() argv preprocess
  • Regression test + bump create-awesome-python-app to 0.2.7

Test plan

  • CI green
  • uvx create-awesome-python-app@0.2.7 my-api --template fastapi-starter --addons github-setup --no-interactive works after publish

Made with Cursor

Typer registered `cache` as a nested command group, so Click treated
tokens after the positional project path as COMMAND names
(`No such command '--template'`). Use a single TyperCommand for scaffold
and keep cache routing in main(). Bump create-awesome-python-app to 0.2.7.
@ulises-jeremias
ulises-jeremias merged commit dae2f7c into mainJul 22, 2026
15 checks passed
@ulises-jeremias
ulises-jeremias deleted the fix/cli-options-after-project-dir branch July 22, 2026 14:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ulises-jeremias