add -help option to help message

This commit is contained in:
onyx-and-iris 2026-01-20 15:31:03 +00:00
parent 0e552873f0
commit a45f7a93af
2 changed files with 10 additions and 8 deletions

View File

@ -31,14 +31,15 @@ if ($help -or ($script.Count -eq 0 -and -not $interactive)) {
Write-Host ' CLI.ps1 [-interactive] [-kind <basic|banana|potato>] [-script <command1>, <command2>, ...]'
Write-Host ''
Write-Host 'Options:'
Write-Host ' -help Display this help message.'
Write-Host ' -interactive Start in interactive mode.'
Write-Host ' -kind <type> Specify the Voicemeeter type (basic, banana or potato). Default is banana.'
Write-Host ' -script <commands> Provide a list of commands to execute in sequence.'
Write-Host ' -kind <type> Specify the Voicemeeter type (basic, banana or potato). Default is banana.'
Write-Host ' -script <commands> Provide a list of commands to execute in sequence.'
Write-Host ''
Write-Host 'Commands can be of the form:'
Write-Host ' Parameter=Value Set a parameter to a specific value.'
Write-Host ' !Parameter Toggle a boolean parameter.'
Write-Host ' Parameter Get the current value of a parameter.'
Write-Host ' !Parameter Toggle a boolean parameter.'
Write-Host ' Parameter Get the current value of a parameter.'
exit 0
}

View File

@ -11,14 +11,15 @@ Usage:
CLI.ps1 [-interactive] [-kind <basic|banana|potato>] [-script <command1>, <command2>, ...]
Options:
-help Display this help message.
-interactive Start in interactive mode.
-kind <type> Specify the Voicemeeter type (basic, banana or potato). Default is banana.
-script <commands> Provide a list of commands to execute in sequence.
-kind <type> Specify the Voicemeeter type (basic, banana or potato). Default is banana.
-script <commands> Provide a list of commands to execute in sequence.
Commands can be of the form:
Parameter=Value Set a parameter to a specific value.
!Parameter Toggle a boolean parameter.
Parameter Get the current value of a parameter.
!Parameter Toggle a boolean parameter.
Parameter Get the current value of a parameter.
```
for example: