[Pdbg] [PATCH 3/6] main: Print specific errors for invalid commands
Amitay Isaacs
amitay at ozlabs.org
Fri May 25 14:52:37 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 4a1b0e0..07c3677 100644
--- a/src/main.c
+++ b/src/main.c
@@ -732,7 +732,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.0
More information about the Pdbg
mailing list