diff --git a/lib/cli.ts b/lib/cli.ts index af7763f44..4038a7f5e 100644 --- a/lib/cli.ts +++ b/lib/cli.ts @@ -149,7 +149,13 @@ let optimistOptions: any = { 'invert-grep': 'jasmineNodeOpts.invertGrep', explorer: 'elementExplorer' }, - strings: {'capabilities.tunnel-identifier': ''} + strings: {'capabilities.tunnel-identifier': ''}, + boolean: [ + 'useBlockingProxy', 'sauceSeleniumUseHttp', 'noGlobals', 'directConnect', + 'verboseMultiSessions', 'restartBrowserBetweenTests', 'untrackOutstandingTimeouts', + 'ignoreUncaughtExceptions', 'invertGrep', 'skipSourceMapSupport', 'disableEnvironmentOverrides', + 'ng12Hybrid', 'disableChecks', 'troubleshoot', 'mockSelenium', 'nodeDebug', 'debug' + ] }; optimist.usage( @@ -171,6 +177,7 @@ optimist.check(function(arg: any) { throw new Error('Error: more than one config file specified'); } }); +optimist.boolean(optimistOptions.boolean); let argv: any = optimist.parse(args);