Skip to content
Snippets Groups Projects
Commit 58ac3e02 authored by Duncan Mortimer's avatar Duncan Mortimer
Browse files

Fix to exit code on bad command line

parent 727453b6
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ int main ( int argc, char **argv ){ ...@@ -13,7 +13,7 @@ int main ( int argc, char **argv ){
if(argc<3){ if(argc<3){
cerr<<"usage: find_the_biggest <lots of volumes> output"<<endl; cerr<<"usage: find_the_biggest <lots of volumes> output"<<endl;
cerr<<"output is index in order of inputs"<<endl; cerr<<"output is index in order of inputs"<<endl;
exit(0); exit(1);
} }
vector<volume<float> > tmpvec; vector<volume<float> > tmpvec;
tmpvec.reserve(argc-2); tmpvec.reserve(argc-2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment