[CABMAN] Make cabman exit with non-zero exit code if argument parsing fails (#4022)

Co-authored-by: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
This commit is contained in:
William Kent 2021-10-10 17:01:48 -04:00 committed by Hermès Bélusca-Maïto
parent 0ebad9f3c5
commit 212cbb6fff
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -689,7 +689,7 @@ int main(int argc, char * argv[])
CCABManager CABMgr;
if (!CABMgr.ParseCmdline(argc, argv))
return false;
return 2;
return CABMgr.Run() ? 0 : 1;
}