From d877a6c50e886af089bf8fb947e566982672fd0a Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Sun, 11 Feb 2018 17:16:46 +0000 Subject: Fix --noheader on fw_printenv The single argument `--noheader' is expecting isn't taken from getopt parsing, but instead from the remaining argv arguments. Signed-off-by: Alex Kiernan --- tools/env/fw_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/env/fw_env.c') diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index ca5507d4d73..6b71acb28fe 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -452,7 +452,7 @@ int fw_printenv(int argc, char *argv[], int value_only, struct env_opts *opts) if (value_only && argc != 1) { fprintf(stderr, - "## Error: `-n' option requires exactly one argument\n"); + "## Error: `-n'/`--noheader' option requires exactly one argument\n"); return -1; } -- cgit v1.2.3