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

This commit is contained in:
2024-03-14 17:01:12 -04:00
parent 02fb625230
commit 80e4148b9b
6 changed files with 61 additions and 51 deletions
+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()
}