Skip to content

🐛 [BUG] - wake open -h crashes with TypeError #414

@cyberthirst

Description

@cyberthirst

Description

disclaimer: bug report generated with claude, found and confirmed manually

Environment

  • eth-wake version: 4.20.1
  • click version: 8.3.0
  • rich-click version: 1.9.4
  • Python version: 3.12

Issue

Running wake open -h or wake open --help crashes with a TypeError.

Steps to Reproduce

wake open -h

Expected Behavior

Display help message for the wake open command.

Actual Behavior

Command crashes with:

TypeError: Chain.get_metavar() got an unexpected keyword argument 'ctx'

Root Cause

The Chain.get_metavar() method in wake/cli/param_types.py:126 has signature:

def get_metavar(self, param: Parameter) -> str:

However, click 8.3.0 calls it with both param and ctx arguments, causing the crash.

Only the help display is broken. The command itself seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions