예제 #1
0
func (c *OutputCommand) Init(args []string) error {
	return cmd.CheckEmpty(args)
}
예제 #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!"\]`)
}