From ba30b1cd54d835c8a7f9b16b5986e1d059a5a303 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 8 Mar 2017 16:00:30 +0100 Subject: [PATCH] common: env: fixup comments and help text --- cmd/nvedit.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cmd/nvedit.c b/cmd/nvedit.c index b67563bd68..d26c97b177 100644 --- a/cmd/nvedit.c +++ b/cmd/nvedit.c @@ -970,7 +970,7 @@ sep_err: /* * env import [-d] [-t [-r] | -b | -c] addr [size] * -d: delete existing environment before importing; - * otherwise overwrite / append to existion definitions + * otherwise overwrite / append to existing definitions * -t: assume text format; either "size" must be given or the * text data must be '\0' terminated * -r: handle CRLF like LF, that means exported variables with @@ -1035,7 +1035,7 @@ static int do_env_import(cmd_tbl_t *cmdtp, int flag, if (!fmt) printf("## Warning: defaulting to text format\n"); - if (sep != '\n' && crlf_is_lf ) + if (sep != '\n' && crlf_is_lf) crlf_is_lf = 0; addr = simple_strtoul(argv[0], NULL, 16); @@ -1210,6 +1210,20 @@ static char env_help_text[] = #endif #if defined(CONFIG_CMD_IMPORTENV) "env import [-d] [-t [-r] | -b | -c] addr [size] - import environment\n" + " -d: delete existing environment before importing;\n" + " otherwise overwrite / append to existing definitions\n" + " -t: assume text format; either 'size' must be given or the\n" + " text data must be '\0' terminated\n" + " -r: handle CRLF like LF, that means exported variables with\n" + " a content which ends with \r won't get imported. Used\n" + " to import text files created with editors which are using CRLF\n" + " for line endings. Only effective in addition to -t.\n" + " -b: assume binary format ('\0' separated, '\0\0' terminated)\n" + " -c: assume checksum protected environment format\n" + " addr: memory address to read from\n" + " size: length of input data; if missing, proper '\0'\n" + " termination is mandatory\n" + #endif "env print [-a | name ...] - print environment\n" #if defined(CONFIG_CMD_RUN) -- 2.39.2