diff mbox series

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

Message ID 20180524055017.8801-12-amitay@ozlabs.org
State Deferred
Headers show
Series Some more cleanups | expand

Commit Message

Amitay Isaacs May 24, 2018, 5:50 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 0bc6c88..eccabd5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -738,7 +738,6 @@  int main(int argc, char *argv[])
 	}
 
 	PR_ERROR("Unsupported command: %s\n", argv[optind]);
-	print_usage(argv[0]);
 	return 1;
 
 found_action: