mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
29 lines
628 B
C#
29 lines
628 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Semmle.Util.Logging;
|
|
using Semmle.Extraction.CSharp.DependencyFetching;
|
|
|
|
namespace Semmle.Extraction.CSharp.Standalone
|
|
{
|
|
public class Program
|
|
{
|
|
public static int Main(string[] args)
|
|
{
|
|
CSharp.Extractor.SetInvariantCulture();
|
|
|
|
var options = Options.Create(args);
|
|
|
|
if (options.Help)
|
|
{
|
|
Options.ShowHelp(System.Console.Out);
|
|
return 0;
|
|
}
|
|
|
|
if (options.Errors)
|
|
return 1;
|
|
|
|
return (int)Extractor.Run(options);
|
|
}
|
|
}
|
|
}
|