Skip to content

Convert lists to repeated arguments #2

@levitsky

Description

@levitsky

Hi, thank you for this software.
I am trying to convert a Namespace from argparse back into arguments. It works really well but I have this one repeatable argument implemented as follows:

parser.add_argument('--foo', action='append')

Hence, in the namespace I have a list under 'foo'. Would be cool if I could then get the repeated argument back from argunparse. Do you think it would make sense to add this?

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