提交 5904da02 编写于 作者: T Thomas Weber 提交者: Wolfgang Denk

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: NThomas Weber <weber@corscience.de>
上级 49e38030
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册