From 131fa6846bb1dfec6764189791805d0ece5b9265 Mon Sep 17 00:00:00 2001
From: David Phillips <dbphillipsnz@gmail.com>
Date: Mon, 6 Jul 2015 22:19:32 +1200
Subject: Invalid rate/channel/sample size shows help also, minor help text
 changes

---
 cue-bin-split.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cue-bin-split.c b/cue-bin-split.c
index 24f99e0..ff384f2 100644
--- a/cue-bin-split.c
+++ b/cue-bin-split.c
@@ -38,6 +38,7 @@
 void die_help()
 {
 	fprintf(stderr,
+		"\n"
 		"Options: \n"
 		"  -r bitrate_Hz\n"
 		"  -c channel_count\n"
@@ -116,8 +117,8 @@ int main(int argc, char **argv)
 	    rate <= 0 ||
 	    sample_size <= 0)
 	{
-		fprintf(stderr, "Channel count, bitrate and sample size must all be positive\n");
-		return EXIT_FAILURE;
+		fprintf(stderr, "ERROR: Channel count, bitrate and sample size must all be positive\n");
+		die_help();
 	}
 
 	/* Open it up */
-- 
cgit v1.1