I think you could add:

if cmd.NArg() < 1 {
		cmd.Usage()
		return nil
}