diff mbox series

[v3,3/3] main: Print specific errors for invalid commands

Message ID 20180604090721.18744-4-amitay@ozlabs.org
State Accepted
Headers show
Series Overhaul target selection | expand

Commit Message

Amitay Isaacs June 4, 2018, 9:07 a.m. UTC
This avoids large usage message obscuring the actual error message.

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 src/main.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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: