Skip to content

How to make an input parameter/flag default to a named Environment Variable? #524

Open
@x10an14

Description

@x10an14

As the title says;

  • I want a flag/input parameter named --foo-bar. (No probs there).
  • I want --help to show that --foo-bar gets its default value from environment variable FOO_BAR.
    (Maybe also show the value of the current envvar FOO_BAR if it exists in current shell/machine)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions