mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 02:04:01 -04:00
packer: unknown commands show better on UI
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user