mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
return nonzero exit code if invalid option was used
This commit is contained in:
@@ -39,6 +39,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
if(parse_options(argc, argv, &options))
|
||||
ret = !do_operations(&options);
|
||||
else
|
||||
ret = 1;
|
||||
|
||||
free_options(&options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user