Make factoids exit on error

This commit is contained in:
Neale Pickett 2012-11-21 21:39:25 -07:00
parent bed36ae75b
commit aaa94730fd
1 changed files with 3 additions and 3 deletions

View File

@ -282,14 +282,14 @@ main(int argc, char *argv[])
}
if (! (filename = argv[optind++])) {
usage(argv[0]);
return usage(argv[0]);
}
if ((act != ACT_NEW) &&
(! (key = argv[optind++]))) {
usage(argv[0]);
return usage(argv[0]);
}
if (argv[optind]) {
usage(argv[0]);
return usage(argv[0]);
}
// Seed PRNG with some crap