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

Fix to exit code on bad command line

parent e340d44a
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ int main(int argc, char **argv){ ...@@ -15,7 +15,7 @@ int main(int argc, char **argv){
if(argc!=3){ if(argc!=3){
cerr<<"Usage: medianfilter <input> <output>"<<endl; cerr<<"Usage: medianfilter <input> <output>"<<endl;
cerr<<"performs 26 neighbourhood median filtering"<<endl; cerr<<"performs 26 neighbourhood median filtering"<<endl;
exit(0); exit(1);
} }
volume<float> volin,volout; volume<float> volin,volout;
read_volume(volin,argv[1]); read_volume(volin,argv[1]);
......
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