From 57eb6182c89f038e74600ec63383e2eca3f3f474 Mon Sep 17 00:00:00 2001 From: Reynold Lariza Date: Thu, 28 Aug 2025 21:33:15 +0800 Subject: [PATCH] Improve sf-org-info.ps1 user experience by showing help when no parameters provided - Modified script to automatically display help when run without any parameters - This prevents the confusing error message that occurred when no default org was set - Users now get clear usage information instead of a command failure - Script still works correctly when any parameter is provided (-to, -list, -limits, -ve, -hp) --- sf-org-info.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sf-org-info.ps1 b/sf-org-info.ps1 index d8e7dab..bef2d96 100644 --- a/sf-org-info.ps1 +++ b/sf-org-info.ps1 @@ -43,8 +43,8 @@ param( [switch]$hp ) -# Show help if requested -if ($hp) { +# Show help if requested or if no parameters provided +if ($hp -or (-not $to -and -not $limits -and -not $list -and -not $ve)) { Get-Help $MyInvocation.MyCommand.Path -Detailed exit 0 }