pyupio / safety

Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
https://safetycli.com/product/safety-cli
MIT License
1.66k stars 141 forks source link

safety auth --help throws error #515

Open Iain-S opened 2 months ago

Iain-S commented 2 months ago

Description

I would like to run the safety auth command with the --help flag to get more information about the auth command.

What I Did

 safety auth --help

 Authenticate Safety CLI to perform scans. Your default browser will automatically open to
 https://platform.safetycli.com. Example: safety auth login

 Usage: safety [GLOBAL-OPTIONS] auth [OPTIONS] COMMAND [ARGS]...

Traceback (most recent call last):
...
TypeError: _print_commands_panel() missing 1 required keyword-only argument: 'cmd_len'

It appears that the problem call is here.

FYI, I think this would have easily been picked up by a linter such as pylint.