From 58ac3e0217e82fe210b91588fa3ad79858a71dad Mon Sep 17 00:00:00 2001 From: Duncan Mortimer <duncan.mortimer@ndcn.ox.ac.uk> Date: Mon, 23 Jul 2007 15:19:14 +0000 Subject: [PATCH] Fix to exit code on bad command line --- find_the_biggest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_the_biggest.cc b/find_the_biggest.cc index c9a8814..2a18803 100644 --- a/find_the_biggest.cc +++ b/find_the_biggest.cc @@ -13,7 +13,7 @@ int main ( int argc, char **argv ){ if(argc<3){ cerr<<"usage: find_the_biggest <lots of volumes> output"<<endl; cerr<<"output is index in order of inputs"<<endl; - exit(0); + exit(1); } vector<volume<float> > tmpvec; tmpvec.reserve(argc-2); -- GitLab