ENH: Upon failure, properly return error code (!=0)

This commit is contained in:
Mathieu Malaterre
2007-09-07 13:06:36 +00:00
parent 53471a76f1
commit 2479921c71
3 changed files with 5 additions and 2 deletions

View File

@@ -522,7 +522,7 @@ int main(int argc, char **argv) {
/* parse input and get user encoding parameters */
if(parse_cmdline_decoder(argc, argv, &parameters,&img_fol) == 1) {
return 0;
return 1;
}
if(img_fol.set_imgdir==1){