Example #1
0
func (c *testCmd) flags() {
	gnuflag.BoolVar(&c.short, "s", false, "Local short flag")
	gnuflag.StringVar(&c.long, "long", "", "Local long flag")
}
Example #2
0
func (c *daemonCmd) flags() {
	gnuflag.StringVar(&c.listenAddr, "tcp", "", "TCP address to listen on in addition to the unix socket")
}