Skip to content

Help message breakage? #1631

@shpedoikal

Description

@shpedoikal

Brand new install, followed by request for help gives me a backtrace:

$ uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
Resolved 21 packages in 5.65s
    Updated https://github.com/github/spec-kit.git (d410d188fc868811283cfdefc7aec99fef92c267)
      Built specify-cli @ git+https://github.com/github/spec-kit.git@d410d188fc868811283cfdefc7aec99fef92c267
Prepared 21 packages in 31.19s
Installed 21 packages in 14ms
 + annotated-doc==0.0.4
 + anyio==4.12.1
 + certifi==2026.1.4
 + click==8.3.1
 + h11==0.16.0
 + httpcore==1.0.9
 + httpx==0.28.1
 + idna==3.11
 + markdown-it-py==4.0.0
 + mdurl==0.1.2
 + packaging==26.0
 + platformdirs==4.9.2
 + pygments==2.19.2
 + pyyaml==6.0.3
 + readchar==4.2.1
 + rich==14.3.2
 + shellingham==1.5.4
 + socksio==1.0.0
 + specify-cli==0.1.0 (from git+https://github.com/github/spec-kit.git@d410d188fc868811283cfdefc7aec99fef92c267)
 + truststore==0.10.4
 + typer==0.24.0
Installed 1 executable: specify
$ specify init --help
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /Users/kyoder/.local/bin/specify:10 in <module>                                                                      │
│                                                                                                                      │
│    7 │   │   sys.argv[0] = sys.argv[0][:-11]                                                                         │
│    8 │   elif sys.argv[0].endswith(".exe"):                                                                          │
│    9 │   │   sys.argv[0] = sys.argv[0][:-4]                                                                          │
│ ❱ 10 │   sys.exit(main())                                                                                            │
│   11                                                                                                                 │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/specify_cli/__init__.py:2044 in main    │
│                                                                                                                      │
│   2041                                                                                                               │
│   2042                                                                                                               │
│   2043 def main():                                                                                                   │
│ ❱ 2044 │   app()                                                                                                     │
│   2045                                                                                                               │
│   2046 if __name__ == "__main__":                                                                                    │
│   2047 │   main()                                                                                                    │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/main.py:1152 in __call__          │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/main.py:1135 in __call__          │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1157 in __call__                                            │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/core.py:795 in main               │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/core.py:188 in _main              │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1686 in invoke                                              │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:943 in make_context                                         │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1408 in parse_args                                          │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:2400 in handle_parse_result                                 │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:2362 in process_value                                       │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1300 in show_help                                           │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:704 in get_help                                             │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1325 in get_help                                            │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/core.py:729 in format_help        │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/rich_utils.py:553 in              │
│ rich_format_help                                                                                                     │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1252 in get_usage                                           │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1269 in format_usage                                        │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:1279 in collect_usage_pieces                                │
│                                                                                                                      │
│ /opt/homebrew/lib/python3.14/site-packages/click/core.py:3036 in get_usage_pieces                                    │
│                                                                                                                      │
│ /Users/kyoder/.local/share/uv/tools/specify-cli/lib/python3.14/site-packages/typer/core.py:390 in make_metavar       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: ParamType.get_metavar() got an unexpected keyword argument 'ctx'

Brew installed python 3.14, macos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions