Exemplo n.º 1
0
func (c *OutputCommand) Init(args []string) error {
	return cmd.CheckEmpty(args)
}
Exemplo n.º 2
0
func (s *CmdSuite) TestCheckEmpty(c *gc.C) {
	c.Assert(cmd.CheckEmpty(nil), gc.IsNil)
	c.Assert(cmd.CheckEmpty([]string{"boo!"}), gc.ErrorMatches, `unrecognized args: \["boo!"\]`)
}