metaflac : Exit with error if invalid option is passed.
Fix from Joshua Kwan <joshk@triplehelix.org> via Debian. Closes Debian bug #329979.
This commit is contained in:
parent
e2f80c17b7
commit
cfac5975c1
@ -37,7 +37,7 @@ int main(int argc, char *argv[])
|
||||
setlocale(LC_ALL, "");
|
||||
init_options(&options);
|
||||
|
||||
if(parse_options(argc, argv, &options))
|
||||
if ((ret = parse_options(argc, argv, &options)) == 0)
|
||||
ret = !do_operations(&options);
|
||||
else
|
||||
ret = 1;
|
||||
|
@ -249,7 +249,7 @@ FLAC__bool parse_options(int argc, char *argv[], CommandLineOptions *options)
|
||||
}
|
||||
}
|
||||
|
||||
return !had_error;
|
||||
return had_error;
|
||||
}
|
||||
|
||||
void free_options(CommandLineOptions *options)
|
||||
|
Loading…
Reference in New Issue
Block a user