packer: unknown commands show better on UI

pull/290/head
Mitchell Hashimoto 13 years ago
parent eb5559817b
commit c163d53437

@ -245,7 +245,7 @@ func (e *coreEnvironment) Cli(args []string) (result int, err error) {
// If we still don't have a command, show the help.
if command == nil {
log.Printf("Environment.CLI: command not found: %s\n", args[0])
e.ui.Error(fmt.Sprintf("Unknown command: %s\n", args[0]))
e.printHelp()
return 1, nil
}

Loading…
Cancel
Save