Example #1
0
        private static int AnalyzeAssembly(AnalyzeAssemblyCommandLineOptions options)
        {
            string language = null;

            if (options.Language != null &&
                !TryParseLanguage(options.Language, out language))
            {
                return(1);
            }

            var command = new AnalyzeAssemblyCommand(language);

            CommandResult result = command.Execute(options);

            return((result.Kind == CommandResultKind.Success) ? 0 : 1);
        }
Example #2
0
        private static int AnalyzeAssembly(AnalyzeAssemblyCommandLineOptions options)
        {
            string language = null;

            if (options.Language != null &&
                !TryParseLanguage(options.Language, out language))
            {
                return(ExitCodes.Error);
            }

            var command = new AnalyzeAssemblyCommand(language);

            CommandStatus status = command.Execute(options);

            return(GetExitCode(status));
        }