Skip to content

Accepted values not working #7

@croissong

Description

@croissong

Hi,
the acceptable values feature does not work for me.
I am using GNU bash, version 4.4.23(1)-release (x86_64-unknown-linux-gnu).
The __argsparse_is_array_declared check never returns true.
Replacing the line with a simple is-set check [[ ! -z ${!array_name+x} ]] (stackoverflow) however, works for me.
I could create an PR, if you want :)

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