in src/Analyzer.Cli/CommandLineParser.cs [124:154]
private void SetupCommonOptionsForCommands(List<Command> commands)
{
List<Option> options = new()
{
new Option<FileInfo>(
new[] { "-c", "--config-file-path" },
"The configuration file to use when parsing the specified template"),
new Option<ReportFormat>(
"--report-format",
"Format of report to be generated"),
new Option<FileInfo>(
new[] { "-o", "--output-file-path" },
$"The report file path (required for --report-format {ReportFormat.Sarif})"),
new Option(
new[] { "-v", "--verbose" },
"Shows details about the analysis"),
new Option(
"--include-non-security-rules",
"Run all the rules against the templates, including non-security rules"),
new Option<FileInfo>(
"--custom-json-rules-path",
"The JSON rules file to use against the templates. If not specified, will use the default rule set that is shipped with the tool.")
};
commands.ForEach(c => options.ForEach(c.AddOption));
}