0.10.4
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?
0.10.4
MacOS Sonoma 14.5
-- Issue
Observed behavior:
Running
tyrannosaurus --versionproduces an errordespite the fact that
--helplists it as a valid optionAlso
--infodoesn't work when given as an optionThe only thing that works is
tyrannosaurus infoExpected behavior
Tyranosaurus version should work as stated in the help
Additional problems
Why
infois a both a command and an option?