[Skiboot] [PATCH 5/8] gard: Add usage message for -p
Oliver O'Halloran
oohall at gmail.com
Thu Nov 30 16:31:26 AEDT 2017
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 at gmail.com>
---
external/gard/gard.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/external/gard/gard.c b/external/gard/gard.c
index d7a0876bbf31..23f87fb9bbf7 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;
}
--
2.9.5
More information about the Skiboot
mailing list