return nonzero exit code if invalid option was used

This commit is contained in:
Josh Coalson
2007-01-30 16:59:15 +00:00
parent a9502bf44d
commit 2761e134b2

View File

@@ -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);