Commit 2761e134 authored by Josh Coalson's avatar Josh Coalson
Browse files

return nonzero exit code if invalid option was used

parent a9502bf4
...@@ -39,6 +39,8 @@ int main(int argc, char *argv[]) ...@@ -39,6 +39,8 @@ int main(int argc, char *argv[])
if(parse_options(argc, argv, &options)) if(parse_options(argc, argv, &options))
ret = !do_operations(&options); ret = !do_operations(&options);
ret = 1;
free_options(&options); free_options(&options);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment