|
@@ -59,7 +59,7 @@ void usage(void)
|
|
|
|
|
|
fprintf(stderr, "fw_printenv/fw_setenv, "
|
|
fprintf(stderr, "fw_printenv/fw_setenv, "
|
|
"a command line interface to U-Boot environment\n\n"
|
|
"a command line interface to U-Boot environment\n\n"
|
|
- "usage:\tfw_printenv\n"
|
|
|
|
|
|
+ "usage:\tfw_printenv [-n] [variable name]\n"
|
|
"\tfw_setenv [variable name] [variable value]\n"
|
|
"\tfw_setenv [variable name] [variable value]\n"
|
|
"\tfw_setenv -s [ file ]\n"
|
|
"\tfw_setenv -s [ file ]\n"
|
|
"\tfw_setenv -s - < [ file ]\n\n"
|
|
"\tfw_setenv -s - < [ file ]\n\n"
|
|
@@ -93,9 +93,12 @@ main(int argc, char *argv[])
|
|
cmdname = p + 1;
|
|
cmdname = p + 1;
|
|
}
|
|
}
|
|
|
|
|
|
- while ((c = getopt_long (argc, argv, "s:h",
|
|
|
|
|
|
+ while ((c = getopt_long (argc, argv, "ns:h",
|
|
long_options, NULL)) != EOF) {
|
|
long_options, NULL)) != EOF) {
|
|
switch (c) {
|
|
switch (c) {
|
|
|
|
+ case 'n':
|
|
|
|
+ /* handled in fw_printenv */
|
|
|
|
+ break;
|
|
case 's':
|
|
case 's':
|
|
script_file = optarg;
|
|
script_file = optarg;
|
|
break;
|
|
break;
|