proxy.golang.org : github.com/dchest/conflag
Package conflag is a simple wrapper around flag package that fills flag values from configuration files before parsing them from command-line. Configuration files contain list of flags in the same format they would appear as command line arguments, but without the leading dash: The order of loading configurations is: These files are parsed before command-line arguments, so real arguments override flags from configuration file. TODO: Support Windows-specific paths. Use this package like you would normally use flag: But before calling Parse(), set program name: If your program overwrites Usage variable, call SetUsage() instead.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/dchest/conflag
License: MIT
Latest release: over 11 years ago
First release: over 11 years ago
Namespace: github.com/dchest
Stars: 3 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 3 hours ago