packer: unknown commands show better on UI

This commit is contained in:
Mitchell Hashimoto
2013-08-13 09:07:08 -07:00
parent eb5559817b
commit c163d53437
+1 -1
View File
@@ -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
}