From 212cbb6fffffbed79aa89b39382556b1c8567b98 Mon Sep 17 00:00:00 2001 From: William Kent Date: Sun, 10 Oct 2021 17:01:48 -0400 Subject: [PATCH] [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> --- sdk/tools/cabman/cabman.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/tools/cabman/cabman.cxx b/sdk/tools/cabman/cabman.cxx index d258b534e79..97c72f7d18a 100644 --- a/sdk/tools/cabman/cabman.cxx +++ b/sdk/tools/cabman/cabman.cxx @@ -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; }