Improve help message formatting

This commit is contained in:
dopeuni444 2025-07-31 13:19:22 +04:00
parent bfa1c4330f
commit 0bf5f9cc20

View File

@ -345,31 +345,29 @@ function Main {
# Show help if requested # Show help if requested
if ($Help) { if ($Help) {
Write-Host @" Write-Host "PowerShell AI Agent - Help" -ForegroundColor Cyan
PowerShell AI Agent - Help Write-Host "==========================" -ForegroundColor Cyan
========================== Write-Host ""
Write-Host "Usage: .\main.ps1 [options]" -ForegroundColor White
Usage: .\main.ps1 [options] Write-Host ""
Write-Host "Options:" -ForegroundColor White
Options: Write-Host " -Command string Command to process" -ForegroundColor White
-Command <string> Command to process Write-Host " -Voice Enable voice recognition" -ForegroundColor White
-Voice Enable voice recognition Write-Host " -Autopilot Enable autopilot mode" -ForegroundColor White
-Autopilot Enable autopilot mode Write-Host " -Help Show this help message" -ForegroundColor White
-Help Show this help message Write-Host " -ConfigPath string Path to configuration file" -ForegroundColor White
-ConfigPath <string> Path to configuration file Write-Host ""
Write-Host "Examples:" -ForegroundColor White
Examples: Write-Host " .\main.ps1 -Command 'Get-ChildItem'" -ForegroundColor White
.\main.ps1 -Command "Get-ChildItem" Write-Host " .\main.ps1 -Voice -Command 'Show me the processes'" -ForegroundColor White
.\main.ps1 -Voice -Command "Show me the processes" Write-Host " .\main.ps1 -Autopilot -Command 'Monitor system performance'" -ForegroundColor White
.\main.ps1 -Autopilot -Command "Monitor system performance" Write-Host ""
Write-Host "Features:" -ForegroundColor White
Features: Write-Host " - Voice recognition and synthesis" -ForegroundColor White
- Voice recognition and synthesis Write-Host " - Autopilot mode for autonomous execution" -ForegroundColor White
- Autopilot mode for autonomous execution Write-Host " - Memory system for persistent learning" -ForegroundColor White
- Memory system for persistent learning Write-Host " - AI-powered command analysis" -ForegroundColor White
- AI-powered command analysis Write-Host " - Cross-platform PowerShell 7 support" -ForegroundColor White
- Cross-platform PowerShell 7 support
"@ -ForegroundColor Cyan
return return
} }