Merge branch '2020-04-27-master-imports'
[oweals/u-boot.git] / cmd / help.c
index 503fa632e74eb2da30585cc7d45cf645b6faca61..a1a0b99b6ffac7c8e3888837c5d1af97f64f75fc 100644 (file)
@@ -27,11 +27,13 @@ U_BOOT_CMD(
        "       - print detailed usage of 'command'"
 );
 
+#ifdef CONFIG_CMDLINE
 /* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */
 ll_entry_declare(cmd_tbl_t, question_mark, cmd) = {
-       "?",    CONFIG_SYS_MAXARGS,     1,      do_help,
+       "?",    CONFIG_SYS_MAXARGS, cmd_always_repeatable,      do_help,
        "alias for 'help'",
 #ifdef  CONFIG_SYS_LONGHELP
        ""
 #endif /* CONFIG_SYS_LONGHELP */
 };
+#endif