From 986fb87db1251deb0e26ec62b036d6f21f039568 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Thu, 16 Nov 2023 12:06:18 -0600 Subject: [PATCH] Make install directory mandatory when uninstalling --- LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs b/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs index 0d15815..5746de8 100644 --- a/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs +++ b/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs @@ -14,8 +14,8 @@ namespace LANCommander.PowerShell.Cmdlets [OutputType(typeof(string))] public class UninstallGameCmdlet : PSCmdlet { - [Parameter(Mandatory = false)] - public string InstallDirectory { get; set; } = "C:\\Games"; + [Parameter(Mandatory = true)] + public string InstallDirectory { get; set; } protected override void ProcessRecord() {