Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Documentation for resolve parameter on prompt_choices #163

@hugo-cisneiros-movile

Description

@hugo-cisneiros-movile

Hi, I tried to use prompt_choices and it wasn't working with case sensitive options. For example:

Which cluster? - (Cluster1): Cluster1
Which cluster? - (Cluster1): cluster1
Which cluster? - (Cluster1): 
...

Looking at the cli.py code, there is a resolve parameter that defaults to ascii_lowercase. Later in the method, the option is passed by this resolve function and every options turns to lowercase before comparing.

I fixed this calling prompt_choices with resolve=str instead of ascii_lowercase.

It would be good if this parameter was listed/described in the API documentation :)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions