diff --git a/Engine/Commands/InvokeScriptAnalyzerCommand.cs b/Engine/Commands/InvokeScriptAnalyzerCommand.cs index 77364ac9c..2548f9a20 100644 --- a/Engine/Commands/InvokeScriptAnalyzerCommand.cs +++ b/Engine/Commands/InvokeScriptAnalyzerCommand.cs @@ -42,12 +42,10 @@ public class InvokeScriptAnalyzerCommand : PSCmdlet, IOutputWriter /// [Parameter(Position = 0, ParameterSetName = ParameterSet_Path_IncludeSuppressed, - Mandatory = true, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [Parameter(Position = 0, ParameterSetName = ParameterSet_Path_SuppressedOnly, - Mandatory = true, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNull] @@ -57,7 +55,7 @@ public string Path get { return path; } set { path = value; } } - private string path; + private string path = "."; /// /// ScriptDefinition: a script definition in the form of a string to run rules on.