Address code review comments

Add some documentation.
Create new util.InitFlags() function to merge and parse in one step.
This commit is contained in:
Joe Beda
2015-01-14 14:59:55 -08:00
parent 1d0b6ee5f5
commit 6bd6b905f5
10 changed files with 36 additions and 17 deletions

View File

@@ -66,6 +66,7 @@ func (v *versionValue) String() string {
return fmt.Sprintf("%v", bool(*v == VersionTrue))
}
// The type of the flag as requred by the pflag.Value interface
func (v *versionValue) Type() string {
return "version"
}