From 0bf5f9cc20272dc1d324a3dc2b2595710f8a88cc Mon Sep 17 00:00:00 2001 From: dopeuni444 Date: Thu, 31 Jul 2025 13:19:22 +0400 Subject: [PATCH] Improve help message formatting --- PowerShell_AI_Agent/scripts/main.ps1 | 48 +++++++++++++--------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/PowerShell_AI_Agent/scripts/main.ps1 b/PowerShell_AI_Agent/scripts/main.ps1 index ac00a7c..12a251e 100644 --- a/PowerShell_AI_Agent/scripts/main.ps1 +++ b/PowerShell_AI_Agent/scripts/main.ps1 @@ -345,31 +345,29 @@ function Main { # Show help if requested if ($Help) { - Write-Host @" -PowerShell AI Agent - Help -========================== - -Usage: .\main.ps1 [options] - -Options: - -Command Command to process - -Voice Enable voice recognition - -Autopilot Enable autopilot mode - -Help Show this help message - -ConfigPath Path to configuration file - -Examples: - .\main.ps1 -Command "Get-ChildItem" - .\main.ps1 -Voice -Command "Show me the processes" - .\main.ps1 -Autopilot -Command "Monitor system performance" - -Features: - - Voice recognition and synthesis - - Autopilot mode for autonomous execution - - Memory system for persistent learning - - AI-powered command analysis - - Cross-platform PowerShell 7 support -"@ -ForegroundColor Cyan + Write-Host "PowerShell AI Agent - Help" -ForegroundColor Cyan + Write-Host "==========================" -ForegroundColor Cyan + Write-Host "" + Write-Host "Usage: .\main.ps1 [options]" -ForegroundColor White + Write-Host "" + Write-Host "Options:" -ForegroundColor White + Write-Host " -Command string Command to process" -ForegroundColor White + Write-Host " -Voice Enable voice recognition" -ForegroundColor White + Write-Host " -Autopilot Enable autopilot mode" -ForegroundColor White + Write-Host " -Help Show this help message" -ForegroundColor White + Write-Host " -ConfigPath string Path to configuration file" -ForegroundColor White + Write-Host "" + Write-Host "Examples:" -ForegroundColor White + Write-Host " .\main.ps1 -Command 'Get-ChildItem'" -ForegroundColor White + Write-Host " .\main.ps1 -Voice -Command 'Show me the processes'" -ForegroundColor White + Write-Host " .\main.ps1 -Autopilot -Command 'Monitor system performance'" -ForegroundColor White + Write-Host "" + Write-Host "Features:" -ForegroundColor White + Write-Host " - Voice recognition and synthesis" -ForegroundColor White + Write-Host " - Autopilot mode for autonomous execution" -ForegroundColor White + Write-Host " - Memory system for persistent learning" -ForegroundColor White + Write-Host " - AI-powered command analysis" -ForegroundColor White + Write-Host " - Cross-platform PowerShell 7 support" -ForegroundColor White return }