commandlineparser / commandlineparser/commandline

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

Open
#524 1 comment 1 reaction 0 assignees View on GitHub
question
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

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)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.