commandlineparser / commandlineparser/commandline

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

Aberta
#524 1 comentário 1 reação 0 responsáveis Ver no GitHub
question
Linguagem predominante
C#
Estrelas
4.8k
Forks
478
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

No files, tests, or entry points are named in the issue. Start by locating the option-default and help-generation paths, then clarify whether environment variables should supply defaults and whether their current values should appear in help. Done means the behavior and display format are specified and covered by tests.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
csharp
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.