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:
reynold
2025-08-28 18:51:13 +08:00
parent 4e5d82eee3
commit 43fc686e26
6 changed files with 71 additions and 71 deletions

View File

@@ -9,11 +9,11 @@ USAGE:
sf-deploy -to <ORG_ALIAS_OR_USERNAME> (-sr "<src1>,<src2>[,...]" | -dr <DIRECTORY>) [-ts "<Test1>,<Test2>[,...]"]
OPTIONS:
-to, --target-org Org alias or username for --target-org
-sr, --sources Comma-separated list of --source-dir paths
-dr, --directory Single directory path to deploy (alternative to -sr)
-ts, --tests Comma-separated list of --tests (enables --test-level RunSpecifiedTests)
-hp, --help Show this help
-to Org alias or username for --target-org
-sr Comma-separated list of --source-dir paths
-dr Single directory path to deploy (alternative to -sr)
-ts Comma-separated list of --tests (enables --test-level RunSpecifiedTests)
-hp Show this help
EXAMPLES:
1) Real deploy with multiple flexipages (specific files):
@@ -48,23 +48,23 @@ 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
;;
-sr|--sources)
-sr)
IFS=',' read -r -a SOURCES_ARR <<< "$2"
shift 2
;;
-dr|--directory)
-dr)
DIR_PATH="$2"
shift 2
;;
-ts|--tests)
-ts)
IFS=',' read -r -a TESTS_ARR <<< "$2"
shift 2
;;
-hp|--help)
-hp)
show_help
exit 0
;;