[Pdbg] [PATCH v3 3/3] main: Print specific errors for invalid commands
Amitay Isaacs
amitay at ozlabs.org
Mon Jun 4 19:07:21 AEST 2018
This avoids large usage message obscuring the actual error message.
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
src/main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 2234d48..62c6e54 100644
--- a/src/main.c
+++ b/src/main.c
@@ -729,7 +729,6 @@ int main(int argc, char *argv[])
}
PR_ERROR("Unsupported command: %s\n", argv[optind]);
- print_usage(basename(argv[0]));
return 1;
found_action:
--
2.17.1
More information about the Pdbg
mailing list