mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-10-27 05:19:58 -04:00
Revert use of ":" for options on Windows, use "-" but replace "-p" with "-pw" to avoid ambiguity, interpret no options as "password"
This commit is contained in:
1 parent
ff9092bc9f
commit
dd0d1ffe55
6 files changed
+83
-85
No files matched your search
@@ -36,14 +36,11 @@ function mutn {
|
||||
[ArgumentCompletions('add', 'gen', 'edit', 'copy', 'shear')]
|
||||
[string]$argument,
|
||||
|
||||
[Parameter(Position = 2)]
|
||||
[Parameter(Position = 2, ValueFromRemainingArguments=$true)]
|
||||
[ArgumentCompleter({ MUTNOptionCompleter @args })]
|
||||
[string]$option,
|
||||
|
||||
[Parameter(Position = 3)]
|
||||
[string]$potentialShowFlag
|
||||
[string]$option
|
||||
)
|
||||
|
||||
#Invoke-Expression -Command ('/usr/local/bin/mutn ' + ($entry -replace ' ', '` '), $argument, ($option -replace ':', '-'), ($potentialShowFlag -replace ':', '-')).Trim() # UNIX testing
|
||||
Invoke-Expression -Command ('./mutn.exe ' + ($entry -replace ' ', '` '), $argument, $option, $potentialShowFlag).Trim()
|
||||
#Invoke-Expression -Command ('/usr/local/bin/mutn ' + ($entry -replace ' ', '` '), $argument, $option).Trim() # UNIX testing
|
||||
Invoke-Expression -Command ('./mutn.exe ' + ($entry -replace ' ', '` '), $argument, $option).Trim()
|
||||
}
|
||||
Reference in new issue
Block a user