Switch Windows to use ":" instead of "-" for options flags because PowerShell is horrible and interprets "-" as a named parameter

This commit is contained in:
RandyTheSilly committed 2024-03-14 17:01:12 -04:00
1 parent 02fb625230
commit 80e4148b9b
6 files changed
+61 -51

No files matched your search

+1 -1
View File
@@ -45,6 +45,6 @@ function mutn {
[ArgumentCompleter({ MUTNArgumentCompleter @args })]
[string]$option
)
#Invoke-Expression -Command ('/usr/local/bin/mutn ' + ($entry -replace ' ', '` '), $argument, $option).Trim() # UNIX testing
#Invoke-Expression -Command ('/usr/local/bin/mutn ' + ($entry -replace ' ', '` '), $argument, ($option -replace ':', '-')).Trim() # UNIX testing
Invoke-Expression -Command ('mutn.exe ' + ($entry -replace ' ', '` '), $argument, $option).Trim()
}