github.com/myENA/nodefflag (go): Package nodefflag extends the go flag package to allow for a "no default" variation of standard flag variables.  There are two types of nodef flag variables we define: those where a double pointer is specified, so you can differentiate between the zero value and not set, and another where the zero value is the same as not set.  For the double pointer variant, if the pp references a nil pointer, the flag was not set.  If the pp references a non-nil pointer, the flag was set, and **ptr contains the value.  The pp itself returned will never be nil, and it is expected that the ND*Var methods will never receive a nil **.  Example:
Keywords: command-line|flag|flags|go|golang