flag
flag copied to clipboard
Parse flags, environment variables and config files
This repository includes the v1.17.4 of `golang/src/flag`. We are currently at v1.15 and a number of improvements have been made to the package which are not reflected here.
Mostly, defaults are used for local development. On production, everything is passing using the Environment variable. So, if any environment variable is not passed then flag will take default. So,...
I'd find it useful to read certain parameters from a file, so for example say I have a `password` command line flag defined. I'd use it like `-password=1234` with the...
Ignore if extra flag is defined in the config file. For multi-service environment it's useful to have more config variables in a config file than a service needs. Having a...
That providing undefined arguments prints some help and exits but ```-config (nonexistent)``` doesn't print anything seems like a bit of a mismatch. I realize CommandLine has ExitOnError on by default...
Hi there, would you accept a PR that adds support for fixed-size integer types? ## Motivation When using smaller types (e.g. int8, uint16) users need to manually cast `int`/`uint` and...
I'm currently relying on the master branch for my builds using `dep`. Could you make a stable release with latest changes?