You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we can print the environment variables for arguments when --help is enabled. Ideally, it can be configurable in CliktHelpFormatter.
@ajalt , not sure if I understood the question. The feature request is for printing environment variables activated via envvar when we run program --help.
If you're asking whether we should print the value of the environment variables in --help, that would be a great addition as well.
Activity
ajalt commentedon Nov 2, 2021
Can you give me an example of the output you're asking for?
buremba commentedon Nov 2, 2021
Here is how it looks like:
If we have
PROFILE
environment variable attached to the argument, maybe something like this would make sense:or maybe this one:
What do you think?
ajalt commentedon Nov 3, 2021
Are you asking for the values of the environment variables, or the names of the variables i.e. the values you pass to
envvar
when creating the option?buremba commentedon Nov 3, 2021
@ajalt , not sure if I understood the question. The feature request is for printing environment variables activated via
envvar
when we runprogram --help
.If you're asking whether we should print the value of the environment variables in
--help
, that would be a great addition as well.ajalt commentedon Nov 3, 2021
I'm not sure what you mean by activated.
If you have an option
val opt by option(envvar="FOO")
, are you asking forFOO
to show up in the help output?buremba commentedon Nov 3, 2021
That's correct. :)