Exit on -h...
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 7 May 2007 00:53:56 +0000 (00:53 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 7 May 2007 00:53:56 +0000 (00:53 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1008 959494ce-11ee-0310-bf91-de5d638817bd

config/dolconf.c

index 663e235..f18a686 100644 (file)
@@ -734,7 +734,7 @@ int main(int argc, char **argv)
        case 'h':
        default:
            fprintf((c == 'h')?stdout:stderr, "usage: dolconf [-haw]\n");
-           break;
+           exit((c == 'h')?0:1);
        }
     }