func (c *CmdWatchdog) ParseArgv(ctx *cli.Context) error { c.restarts = ctx.Int("num-restarts") if c.restarts == 0 { c.restarts = numRestartsDefault } return nil }
func (c *CmdLogSend) ParseArgv(ctx *cli.Context) error { if len(ctx.Args()) > 0 { return UnexpectedArgsError("log send") } c.numLines = ctx.Int("n") if c.numLines < 1 { c.numLines = defaultLines } else if c.numLines > maxLines { c.numLines = maxLines } return nil }