Remove all long options (--) for complete consistency
✅ Major Consistency Update: - Removed ALL long options (--target-org, --help, etc.) from scripts - Now using ONLY two-character options (-to, -hp, etc.) - Complete consistency across all wrapper scripts Updated Scripts: ✅ sf-deploy: Removed --target-org, --sources, --directory, --tests, --help ✅ sf-dry-run: Removed all --long options, matching sf-deploy ✅ sf-web-open: Removed --target-org, --path, --url-only, --help ✅ sf-data-export: Removed all --long options throughout ✅ sf-logs-tail: Removed all --long options and updated help text Updated Test Scripts: ✅ test-wrapper-suite.sh: Removed --help tests and --long option tests ✅ quick-test.sh: Updated to use -ls instead of --list ✅ All tests now use only two-character options 🎯 Result: Pure two-character option interface - Clean, consistent UX: -to, -sr, -dr, -ts, -hp, -qy, -fl, etc. - No mixing of single-char, two-char, and long options - Memorable, self-documenting option names throughout
This commit is contained in:
16
sf-web-open
16
sf-web-open
@@ -9,10 +9,10 @@ USAGE:
|
||||
sf-web-open [-to <ORG_ALIAS_OR_USERNAME>] [-pt <RELATIVE_PATH>] [-ur]
|
||||
|
||||
OPTIONS:
|
||||
-to, --target-org Org alias or username to pass as --target-org
|
||||
-pt, --path Relative path to open inside the org (e.g., "/lightning/setup/SetupOneHome/home")
|
||||
-ur, --url-only URL-only: print the URL instead of opening a browser (passes --url-only)
|
||||
-hp, --help Show this help
|
||||
-to Org alias or username to pass as --target-org
|
||||
-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)
|
||||
-hp Show this help
|
||||
|
||||
EXAMPLES:
|
||||
1) Open a specific org (default home):
|
||||
@@ -42,19 +42,19 @@ fi
|
||||
# Parse command line arguments using manual parsing for two-character options
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
-to|--target-org)
|
||||
-to)
|
||||
ORG="$2"
|
||||
shift 2
|
||||
;;
|
||||
-pt|--path)
|
||||
-pt)
|
||||
PATH_ARG="$2"
|
||||
shift 2
|
||||
;;
|
||||
-ur|--url-only)
|
||||
-ur)
|
||||
URL_ONLY=1
|
||||
shift
|
||||
;;
|
||||
-hp|--help)
|
||||
-hp)
|
||||
show_help
|
||||
exit 0
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user