Skip to content

Commit ab1dd25

Browse files
committed
Set Path default value
1 parent 8826d1c commit ab1dd25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: Engine/Commands/InvokeScriptAnalyzerCommand.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ public class InvokeScriptAnalyzerCommand : PSCmdlet, IOutputWriter
4242
/// </summary>
4343
[Parameter(Position = 0,
4444
ParameterSetName = ParameterSet_Path_IncludeSuppressed,
45-
Mandatory = true,
4645
ValueFromPipeline = true,
4746
ValueFromPipelineByPropertyName = true)]
4847
[Parameter(Position = 0,
4948
ParameterSetName = ParameterSet_Path_SuppressedOnly,
50-
Mandatory = true,
5149
ValueFromPipeline = true,
5250
ValueFromPipelineByPropertyName = true)]
5351
[ValidateNotNull]
@@ -57,7 +55,7 @@ public string Path
5755
get { return path; }
5856
set { path = value; }
5957
}
60-
private string path;
58+
private string path = ".";
6159

6260
/// <summary>
6361
/// ScriptDefinition: a script definition in the form of a string to run rules on.

0 commit comments

Comments
 (0)