Improved documentation

This commit is contained in:
Jeremy Saenz
2013-11-01 07:31:37 -07:00
parent 3c97f95b6a
commit 0d3c3f4497
5 changed files with 26 additions and 7 deletions

View File

@@ -4,8 +4,12 @@ import "fmt"
import "flag"
import "strconv"
// Flag is a common interface related to parsing flags in cli.
// For more advanced flag parsing techniques, it is recomended that
// this interface be implemented.
type Flag interface {
fmt.Stringer
// Apply Flag settings to the given flag set
Apply(*flag.FlagSet)
}