Skip to content
Snippets Groups Projects
Commit 5904da02 authored by Thomas Weber's avatar Thomas Weber Committed by Wolfgang Denk
Browse files

Common/cmd_nvedit: Check for env subcommand


The env command needs one subcommand. If this is not available
print the usage help.

Signed-off-by: default avatarThomas Weber <weber@corscience.de>
parent 49e38030
No related branches found
No related tags found
No related merge requests found
......@@ -848,6 +848,9 @@ static int do_env (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
cmd_tbl_t *cp;
if (argc < 2)
return cmd_usage(cmdtp);
/* drop initial "env" arg */
argc--;
argv++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment