Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multitool convert documentation typo #2730

Open
Jiri-Stary opened this issue Nov 3, 2023 · 1 comment
Open

Multitool convert documentation typo #2730

Jiri-Stary opened this issue Nov 3, 2023 · 1 comment

Comments

@Jiri-Stary
Copy link

sarif convert

Hi i think there is a typo in the docs
https://github.com/microsoft/sarif-sdk/blob/main/docs/multitool-usage.md

: Convert a Fortify file to SARIF
Sarif.Multitool convert Current.fpr -tool FortifyFpr -output Current.sarif

running this command fails since it parses like -t ool and -o utput

Spent some time scratching my head what was wrong

@boris-ning-usds
Copy link

Oooh, I just bit this same problem. Was scratching my head all the same.

Run npx @microsoft/sarif-multitool convert results.fpr -tool FortifyFpr -output results.sarif
System.ArgumentException: Unrecognized tool specified: ool (Parameter 'toolFormat')
   at Microsoft.CodeAnalysis.Sarif.Converters.ToolFormatConverter.ConvertToStandardFormat(String toolFormat, Stream inputStream, IResultLogWriter outputStream, OptionallyEmittedData dataToInsert, String pluginAssemblyPath)
   at Microsoft.CodeAnalysis.Sarif.Converters.ToolFormatConverter.ConvertToStandardFormat(String toolFormat, String inputFileName, String outputFileName, FilePersistenceOptions logFilePersistenceOptions, OptionallyEmittedData dataToInsert, String pluginAssemblyPath)
   at Microsoft.CodeAnalysis.Sarif.Multitool.ConvertCommand.Run(ConvertOptions convertOptions, IFileSystem fileSystem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants