docopt.cpp icon indicating copy to clipboard operation
docopt.cpp copied to clipboard

Feature Request: Please support default that picks up value from environment variable

Open lenkite opened this issue 5 years ago • 3 comments

This is a popular convention now being followed by several CLI tools that pick up default values (like tokens or passwords) from environment variables if not specified at the command line. Maybe something like -t <token> api token [default:env:NAVAL_FATE_TOKEN]

But the author might have a better way to do this.

lenkite avatar Dec 31 '19 19:12 lenkite

For something like this, you might want to request it upstream

indianakernick avatar Jan 18 '20 10:01 indianakernick

@Kerndog73 does the c++ version only have things that the python version has?

AntonioCS avatar Jun 08 '20 21:06 AntonioCS

Yes, we've tried to keep it with the same features as the Python version (and by extension, all the other ports).

jaredgrubb avatar Jun 10 '20 02:06 jaredgrubb