timestampflag examples
This commit is contained in:
parent
d2b7f68cf3
commit
d4715a44b9
@ -1364,6 +1364,8 @@ func main() {
|
|||||||
&cli.StringFlag{Name: "dance-move", Aliases: []string{"d"}},
|
&cli.StringFlag{Name: "dance-move", Aliases: []string{"d"}},
|
||||||
&cli.StringSliceFlag{Name: "names", Aliases: []string{"N"}},
|
&cli.StringSliceFlag{Name: "names", Aliases: []string{"N"}},
|
||||||
&cli.UintFlag{Name: "age"},
|
&cli.UintFlag{Name: "age"},
|
||||||
|
&cli.TimestampFlag{Name: "meeting", Layout: "2006-01-02T15:04:05"},
|
||||||
|
&cli.TimestampFlag{Name: "birthday", Layout: "2006-01-02"},
|
||||||
&cli.Uint64Flag{Name: "bigage"},
|
&cli.Uint64Flag{Name: "bigage"},
|
||||||
},
|
},
|
||||||
EnableBashCompletion: true,
|
EnableBashCompletion: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user