Skip to content

Argument name suffixes as workaround for name collisions #114

@bede

Description

@bede

Hi, I really like defopt! It's my new go-to CLI library 🙏

One feature I miss from Argh (I think?) is the ability to modify argument names such that the name can be used in the function body without causing collisions.

Say if I want one of my CLI args to be called environment, but don't want it to collide with an existing variable called environment, it would be cool if the CLI arg could be given a different name like environment_ but still appear as --environment in the CLI. Defopt doesn't do this but IIRC Argh does.

If I implemented this, would you consider a PR? Understand if not.

Thanks,
Bede

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