hedyhli / starcli

:sparkles: Browse trending GitHub projects from your command line
https://pypi.org/project/starcli/
MIT License
547 stars 50 forks source link

Bug: ValueError 'default' must be a list #102

Closed niftycode closed 2 years ago

niftycode commented 3 years ago

Description

Python version: 3.9

your operating system (and terminal type of needed): macOS Terminal

starcli version: 2.17.0

any suggestions to the cause of the problem? (if possible)

Running starcli (with options --lang python -L list raises a value error:

"ValueError: 'default' must be a list when 'multiple' is true."

I think because of:

@click.option(
"--topic",
"-t",
default="",
multiple=True,  # <- this value
help="Search by topic, can be specified multiple times",
hedyhli commented 3 years ago

Thanks, I'll have a look into it

davised commented 3 years ago

I'm having the same issue. I'm on archlinux with python 3.9.6. I can't run with starcli -h to get the options.

hedyhli commented 2 years ago

Oopsie forgot to close