We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.Save()
1 parent ed56aca commit 9f54180Copy full SHA for 9f54180
Turtle.types.ps1xml
@@ -961,14 +961,20 @@ return $this
961
Save-Turtle
962
#>
963
param(
964
+[Parameter(Mandatory)]
965
[string]
966
$FilePath,
967
968
969
$Property
970
)
971
-return $this | Save-Turtle $FilePath -Property $Property
972
+$saveSplat = [Ordered]@{FilePath = $FilePath}
973
+if ($Property) {
974
+ $saveSplat.Property = $property
975
+}
976
+
977
+return $this | Save-Turtle @saveSplat
978
979
</Script>
980
</ScriptMethod>
0 commit comments