Fixes #3 Required and optional flags+args (#6)

This commit is contained in:
Gerald Kaszuba
2018-05-19 20:54:26 +10:00
committed by Alec Thomas
parent aea859372c
commit 8e96da517d
4 changed files with 188 additions and 23 deletions
+1
View File
@@ -29,6 +29,7 @@ type Value struct {
Field reflect.StructField
Value reflect.Value
Required bool
Set bool // Used with Required to test if a value has been given.
Format string // Formatting directive, if applicable.
}