diff options
Diffstat (limited to 'common/command.c')
-rw-r--r-- | common/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c index 52b9ee14ef..e6b4aff8b8 100644 --- a/common/command.c +++ b/common/command.c @@ -34,6 +34,7 @@ #include <init.h> #include <complete.h> #include <linux/utsrelease.h> +#include <getopt.h> const char version_string[] = "U-Boot " UTS_RELEASE " (" __DATE__ " - " __TIME__ ")"; @@ -96,6 +97,8 @@ int execute_command(int argc, char **argv) cmd_tbl_t *cmdtp; int ret; + getopt_reset(); + /* Look up command in command table */ if ((cmdtp = find_cmd(argv[0]))) { /* found - check max args */ |