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

--version doesn't wok #217

Open
vladistan opened this issue Jul 25, 2024 · 1 comment
Open

--version doesn't wok #217

vladistan opened this issue Jul 25, 2024 · 1 comment
Labels
kind: bug Something isn’t working

Comments

@vladistan
Copy link

  • Project version:

0.10.4

  • OS/platform:

MacOS Sonoma 14.5

-- Issue

Observed behavior:

Running tyrannosaurus --version produces an error

$ tyrannosaurus --version
Usage: tyrannosaurus [OPTIONS] COMMAND [ARGS]...
Try 'tyrannosaurus --help' for help.
╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Missing command.                                                                                              │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

despite the fact that --help lists it as a valid option

$ tyrannosaurus --help

 Usage: tyrannosaurus [OPTIONS] COMMAND [ARGS]...

 Tyrannosaurus. Tyrannosaurus can create new modern Python projects from a template and synchronize metadata
 across the project.

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version                     Write version and exit                                                          │
│ --info                        Write info and exit (same as 'tyrannosaurus info')                              │
│ --install-completion          Install completion for the current shell.                                       │
│ --show-completion             Show completion for the current shell, to copy it or customize the              │

Also --info doesn't work when given as an option

$ tyrannosaurus --info
Usage: tyrannosaurus [OPTIONS] COMMAND [ARGS]...
Try 'tyrannosaurus --help' for help.
╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Missing command.                                                                                              │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

The only thing that works is tyrannosaurus info

$ tyrannosaurus info
Tyrannosaurus v0.10.4 (2020-09-25)

Expected behavior

Tyranosaurus version should work as stated in the help

$ tyrannosaurus --version
Tyrannosaurus v0.10.4 (2020-09-25)

Additional problems

Why info is a both a command and an option?

@vladistan vladistan added the kind: bug Something isn’t working label Jul 25, 2024
@dmyersturnbull
Copy link
Owner

dmyersturnbull commented Jul 31, 2024

Thanks for reporting!

I haven't been maintaining this because I've been prototyping a replacement at dmyersturnbull/cicd. It's massively better, and I've been using it in several projects. If you're starting a new project, I recommend cloning that repository and modifying as you see fit.

Most GitHub workflows are broken, but you can extract the pytest job. Alternatively, modify an example workflow.

Changes:

  • Replaced Poetry with Hatch
  • Sphinx, readthedocs, and reST with mkdocs-material, GitHub Pages, and Markdown
  • Black and pylint to Ruff.
  • Dropped direct support for Conda. Grayskull is still maintained, if you need that.
  • Unfinished: Robust and flexible replacement for tyrannosaurus new and tyrannosaurus sync; see these :tyranno: comments, if wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

2 participants