diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-07-06 22:19:32 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-07-06 22:19:32 +1200 |
commit | 131fa6846bb1dfec6764189791805d0ece5b9265 (patch) | |
tree | e23039d997abf306b5f030cca3d38349cd3fe9f4 | |
parent | 29f24293fe1d69f6457b6f4749082f88e805da02 (diff) | |
download | cue-bin-split-131fa6846bb1dfec6764189791805d0ece5b9265.tar.xz |
Invalid rate/channel/sample size shows help also, minor help text changes
-rw-r--r-- | cue-bin-split.c | 5 |
1 files 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 */ |