-
Notifications
You must be signed in to change notification settings - Fork 394
Add CustomRulePath property to settings file #803
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
Conversation
private bool OverrideSwitchParam(bool paramValue, string paramName) | ||
{ | ||
return MyInvocation.BoundParameters.ContainsKey(paramName) | ||
? ((SwitchParameter)MyInvocation.BoundParameters[paramName]).ToBool() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if this is false..do you want to use the original value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is that if the user doesn't specify a switch, then use the value from the settings file. But if the user specifies the switch on the command line then use the command line argument.
For example, if IncludeDefaultRules
is set to $true
in the settings file and if the user specifies -IncludeDefaultRules:$false
on the command line, then the final value for IncludeDefaultRules
will be set to $false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
LGTM |
@KrishnaV-MSFT Thanks! |
No description provided.