From a45f7a93af2737714aecae64e99f9951405694d5 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 20 Jan 2026 15:31:03 +0000 Subject: [PATCH] add -help option to help message --- examples/cli/CLI.ps1 | 9 +++++---- examples/cli/README.md | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/cli/CLI.ps1 b/examples/cli/CLI.ps1 index 5314f1a..81adb7a 100644 --- a/examples/cli/CLI.ps1 +++ b/examples/cli/CLI.ps1 @@ -31,14 +31,15 @@ if ($help -or ($script.Count -eq 0 -and -not $interactive)) { Write-Host ' CLI.ps1 [-interactive] [-kind ] [-script , , ...]' Write-Host '' Write-Host 'Options:' + Write-Host ' -help Display this help message.' Write-Host ' -interactive Start in interactive mode.' - Write-Host ' -kind Specify the Voicemeeter type (basic, banana or potato). Default is banana.' - Write-Host ' -script Provide a list of commands to execute in sequence.' + Write-Host ' -kind Specify the Voicemeeter type (basic, banana or potato). Default is banana.' + Write-Host ' -script 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 } diff --git a/examples/cli/README.md b/examples/cli/README.md index 6c34f77..36a2131 100644 --- a/examples/cli/README.md +++ b/examples/cli/README.md @@ -11,14 +11,15 @@ Usage: CLI.ps1 [-interactive] [-kind ] [-script , , ...] Options: + -help Display this help message. -interactive Start in interactive mode. - -kind Specify the Voicemeeter type (basic, banana or potato). Default is banana. - -script Provide a list of commands to execute in sequence. + -kind Specify the Voicemeeter type (basic, banana or potato). Default is banana. + -script 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: