diff --git a/Engine/Commands/InvokeScriptAnalyzerCommand.cs b/Engine/Commands/InvokeScriptAnalyzerCommand.cs index 9e640239f..050004609 100644 --- a/Engine/Commands/InvokeScriptAnalyzerCommand.cs +++ b/Engine/Commands/InvokeScriptAnalyzerCommand.cs @@ -43,12 +43,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] @@ -58,7 +56,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.