Skip to content

Display env variable in help text for flags #198

Answered by pacak
gandro asked this question in Q&A
Discussion options

You must be logged in to vote

It's a bug, fixed in #200

I changed the representation from your desired output a bit though - it doesn't really matter what the value of the env variable is for flag purposes. bpaf checks if it's set or unset so it would look like this:

Usage: [--fonts DIR] [--system-fonts]
Available options:
        --fonts <DIR>   [env:OIKOS_FONTS: N/A]
                        Load fonts from this directory
        --system-fonts  [env:OIKOS_SYSTEM_FONTS: not set]
                        Search for additional fonts in system directories
    -h, --help          Prints help information

Thank you for the report, I'll publish this change along with a few other open tickets I have a bit later.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gandro
Comment options

Answer selected by gandro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants