From 7fdd688f3c999b0224f2f6e5b22b056d4cc753e0 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Sat, 3 Sep 2005 01:33:12 +0000 Subject: [PATCH] fix bug: -a and -t were not prevented from being used together (sf #1229481: https://sourceforge.net/tracker/index.php?func=detail&aid=1229481&group_id=13478&atid=113478) --- doc/html/changelog.html | 7 ++++--- src/flac/main.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/html/changelog.html b/doc/html/changelog.html index 25703a5..b468d21 100644 --- a/doc/html/changelog.html +++ b/doc/html/changelog.html @@ -83,12 +83,13 @@
  • flac:
  • diff --git a/src/flac/main.c b/src/flac/main.c index e027ae5..1c80747 100644 --- a/src/flac/main.c +++ b/src/flac/main.c @@ -347,6 +347,8 @@ int do_it() return usage_error("ERROR: --until is not allowed in test mode\n"); if(0 != option_values.cue_specification) return usage_error("ERROR: --cue is not allowed in test mode\n"); + if(0 != option_values.analyze) + return usage_error("ERROR: analysis mode (-a/--analyze) and test mode (-t/--test) cannot be used together\n"); } } -- 2.7.4