]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/command.c
Standardize command usage messages with cmd_usage()
[people/ms/u-boot.git] / common / command.c
index a4a978c5fdc676249bc6f73c7e639acfc1b9dc72..c3966484f9a87eaf7b4d2b04f633b0e4665ee157 100644 (file)
@@ -379,6 +379,11 @@ cmd_tbl_t *find_cmd (const char *cmd)
        return find_cmd_tbl(cmd, &__u_boot_cmd_start, len);
 }
 
+void cmd_usage(cmd_tbl_t *cmdtp)
+{
+       printf("Usage:\n%s\n", cmdtp->usage);
+}
+
 #ifdef CONFIG_AUTO_COMPLETE
 
 int var_complete(int argc, char *argv[], char last_char, int maxv, char *cmdv[])