Make install directory mandatory when uninstalling

This commit is contained in:
Pat Hartl 2023-11-16 12:06:18 -06:00
parent f7fa7aa9f3
commit 986fb87db1

View file

@ -14,8 +14,8 @@ namespace LANCommander.PowerShell.Cmdlets
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class UninstallGameCmdlet : PSCmdlet public class UninstallGameCmdlet : PSCmdlet
{ {
[Parameter(Mandatory = false)] [Parameter(Mandatory = true)]
public string InstallDirectory { get; set; } = "C:\\Games"; public string InstallDirectory { get; set; }
protected override void ProcessRecord() protected override void ProcessRecord()
{ {