From ab1dd25ccf266c6798d8c63c91f7e7c451790c4e Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Tue, 14 Feb 2023 17:48:07 -0600 Subject: [PATCH] Set Path default value --- Engine/Commands/InvokeScriptAnalyzerCommand.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.