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

Unable to use equals sign (=) in command line argument values #401

Closed
LoremFooBar opened this issue Dec 22, 2020 · 2 comments
Closed

Unable to use equals sign (=) in command line argument values #401

LoremFooBar opened this issue Dec 22, 2020 · 2 comments
Labels

Comments

@LoremFooBar
Copy link

Describe the bug

Report Generator throws exception when a command line argument contains equals sign (=) in value.

To Reproduce

Run this command for example:

reportgenerator -reports:**/coverage*.xml -targetdir:coverage-report "-reporttypes:JsonSummary;Html" -verbosity:Verbose "-title:my=title"

Output:

2020-12-22T14:50:32: Arguments
2020-12-22T14:50:32:  -reports:**/coverage*.xml
2020-12-22T14:50:32:  -targetdir:coverage-report
2020-12-22T14:50:32:  -reporttypes:JsonSummary;Html
2020-12-22T14:50:32:  -verbosity:Verbose
2020-12-22T14:50:32:  -title:my=title
2020-12-22T14:50:32: The short switch '-title:my=title' is not defined in the switch mappings.
2020-12-22T14:50:32:    at Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider.Load()
   at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
   at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
   at Palmmedia.ReportGenerator.Core.Generator.GetConfiguration() in /_/src/ReportGenerator.Core/Generator.cs:line 275
   at Palmmedia.ReportGenerator.Core.Generator.GenerateReport(IReportConfiguration reportConfiguration) in /_/src/ReportGenerator.Core/Generator.cs:line 44
@danielpalme
Copy link
Owner

Fixed in version 4.8.3

@LoremFooBar
Copy link
Author

Thanks for the quick fix!

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

No branches or pull requests

2 participants