aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-11-30 16:31:26 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-12-01 00:54:47 -0600
commit28b104c46ffe9e2fcff28bc17e084ad7d6e3618c (patch)
treef1df21754dea21f1ca96ba5e38d5422b1804ae77 /external
parent90d8e71b83a8eac13bb6fe6a7db62085e65460f3 (diff)
downloadskiboot-28b104c46ffe9e2fcff28bc17e084ad7d6e3618c.zip
skiboot-28b104c46ffe9e2fcff28bc17e084ad7d6e3618c.tar.gz
skiboot-28b104c46ffe9e2fcff28bc17e084ad7d6e3618c.tar.bz2
gard: Add usage message for -p
The -p argument only really makes sense when -f is specified. Print an actual error message rather than just the usage blob. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/gard/gard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/external/gard/gard.c b/external/gard/gard.c
index d7a0876..23f87fb 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -899,6 +899,7 @@ int main(int argc, char **argv)
*/
if (part && !filename) {
usage(progname);
+ fprintf(stderr, "-p only makes sense when used with -f!\n");
return EXIT_FAILURE;
}