Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to set cmdline option's value from environment variable #235

Closed
wants to merge 1 commit into from

Conversation

mouadino
Copy link

Add a new token [envvar: ...] to option description that enable setting
an option value from the correspondent environment variable, which
precede default value but can be overrited by explicitly setting the
option value from command line.

Add a new token [envvar: ...] to option description that enable setting
an option value from the correspondent environment variable, which
precede default value but can be overrited by explicitly setting the
option value from command line.
@@ -343,6 +344,13 @@ The rules are as follows:
--output=FILE Output file [default: test.txt]
--directory=DIR Some directory [default: ./]

- If you want to set the option's value from environment variable, put

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from an environment variable... in the form of...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. It's consistent with the other option description.

@mamachanko
Copy link

👍

@@ -343,6 +344,13 @@ The rules are as follows:
--output=FILE Output file [default: test.txt]
--directory=DIR Some directory [default: ./]

- If you want to set the option's value from environment variable, put
it into the option-description, in form ``[envvar:
<environment-variabale-name>]``::

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

little typo there...environment-variable-name

@mouadino
Copy link
Author

No update for 2 years, closing ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants