fix: update sf-web-open help text to recommend target org usage

- Changed -to option description to '(recommended)' instead of just documenting it
- Replaced example that assumes default org with more practical example
- Maintains backwards compatibility while encouraging explicit org specification
- Aligns with environment where default org may not be configured
This commit is contained in:
reynold
2025-08-28 23:11:35 +08:00
parent 4020d881f1
commit ffc933604e

View File

@@ -9,7 +9,7 @@ USAGE:
sf-web-open [-to <ORG_ALIAS_OR_USERNAME>] [-pt <RELATIVE_PATH>] [-ur] sf-web-open [-to <ORG_ALIAS_OR_USERNAME>] [-pt <RELATIVE_PATH>] [-ur]
OPTIONS: OPTIONS:
-to Org alias or username to pass as --target-org -to Org alias or username to pass as --target-org (recommended)
-pt Relative path to open inside the org (e.g., "/lightning/setup/SetupOneHome/home") -pt Relative path to open inside the org (e.g., "/lightning/setup/SetupOneHome/home")
-ur URL-only: print the URL instead of opening a browser (passes --url-only) -ur URL-only: print the URL instead of opening a browser (passes --url-only)
-hp Show this help -hp Show this help
@@ -24,8 +24,8 @@ EXAMPLES:
3) Get just the URL for scripting: 3) Get just the URL for scripting:
sf-web-open -to NUSHUB-DR2 -ur sf-web-open -to NUSHUB-DR2 -ur
4) Open the current default org (no -to provided): 4) Open org with custom path:
sf-web-open sf-web-open -to MYORG -pt "/lightning/setup/ObjectManager/home"
EOF EOF
} }