summaryrefslogtreecommitdiff
path: root/util/cbfstool
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-11-13 16:38:30 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-11-15 16:49:30 +0000
commit17cd905828427d58b67618784cfeefc31d695bdd (patch)
tree7a6006ad44e7b08d34452b7613711a49b265bfd3 /util/cbfstool
parente0117b14896a67d8eaf1cec82655316357d351dc (diff)
util/cbfstool/amdcompress: fix argument requirement
The compress and uncompress options don't have arguments and shouldn't consume the next token. So replace required_argument with no_argument for the two options. Change-Id: Ib9b190f2cf606109f82a65d00327871d6ffb7082 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47573 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'util/cbfstool')
-rw-r--r--util/cbfstool/amdcompress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/amdcompress.c b/util/cbfstool/amdcompress.c
index ad6a039ee9..76089ea340 100644
--- a/util/cbfstool/amdcompress.c
+++ b/util/cbfstool/amdcompress.c
@@ -29,9 +29,9 @@ static const char *optstring = "i:o:cm:uh";
static struct option long_options[] = {
{"infile", required_argument, 0, 'i' },
{"outfile", required_argument, 0, 'o' },
- {"compress", required_argument, 0, 'c' },
+ {"compress", no_argument, 0, 'c' },
{"maxsize", required_argument, 0, 'm' },
- {"uncompress", required_argument, 0, 'u' },
+ {"uncompress", no_argument, 0, 'u' },
{"help", no_argument, 0, 'h' },
};