Populate go command line app flags from config struct
Switch branches/tags
Nothing to show
Clone or download
artyom Add shortcut Parse function
Most common use case is calling autoflags.Define(...) followed by
flag.Parse(), so add shortcut function for this.
Latest commit 250b3e9 Mar 1, 2017
Failed to load latest commit information.
LICENSE Initial commit May 15, 2014
README.md Fix description Nov 5, 2014
autoflags.go Add shortcut Parse function Mar 1, 2017
autoflags_test.go Update documentation Nov 1, 2016



Package autoflags provides a convenient way of exposing struct fields as command line flags. Exposed fields should have flag tag attached: flag:"flagName,usage string".

For examples see documentation.