summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index a46e07e352..d9907250a7 100644
--- a/common/command.c
+++ b/common/command.c
@@ -108,7 +108,11 @@ int execute_command(int argc, char **argv)
}
return ret;
} else {
+#ifdef CONFIG_CMD_HELP
printf ("Unknown command '%s' - try 'help'\n", argv[0]);
+#else
+ printf ("Unknown command '%s'\n", argv[0]);
+#endif
return -1; /* give up after bad command */
}
}