Enforce strict two-character option scheme across all wrapper scripts

- Removed long options from input parsing in all bash scripts
- Updated all help texts to show only two-character options
- Fixed error messages to reference short options only
- All scripts now reject long options like --help, --verbose, --target-org
- Maintained internal use of long sf CLI commands (e.g., --target-org passed to sf)
- Updated README.md documentation to reflect two-character scheme only
- Scripts affected: sf-retrieve, sf-test-run, sf-data-import, sf-data-export
- PowerShell scripts already used correct two-character parameter scheme
- All wrapper scripts now have consistent user interface

This ensures strict consistency in the two-character option scheme
while maintaining backward compatibility for the sf CLI commands themselves.
This commit is contained in:
reynold
2025-08-28 22:07:34 +08:00
parent 7aa7a7a688
commit 1ae8df8561
9 changed files with 89 additions and 89 deletions

View File

@@ -9,12 +9,12 @@ USAGE:
sf-org-create -al <ORG_NAME> [-dd <DAYS>] [-df <CONFIG_FILE>] [-st] [-tp <TEMPLATE>] [-hp]
OPTIONS:
-al, --alias Name/alias for the new scratch org (required)
-dd, --duration-days Duration in days (default: 7, max: 30)
-df, --def-file Path to scratch org definition file (default: config/project-scratch-def.json)
-st, --set-default Set as default org alias after creation
-tp, --template Use predefined template (standard, testing, minimal, full)
-hp, --help Show this help
-al Name/alias for the new scratch org (required)
-dd Duration in days (default: 7, max: 30)
-df Path to scratch org definition file (default: config/project-scratch-def.json)
-st Set as default org alias after creation
-tp Use predefined template (standard, testing, minimal, full)
-hp Show this help
EXAMPLES:
1) Create basic scratch org:
@@ -57,27 +57,27 @@ fi
# Parse command line arguments using manual parsing for two-character options
while [[ $# -gt 0 ]]; do
case $1 in
-al|--alias)
-al)
ORG_NAME="$2"
shift 2
;;
-dd|--duration-days)
-dd)
DURATION="$2"
shift 2
;;
-df|--def-file)
-df)
CONFIG_FILE="$2"
shift 2
;;
-st|--set-default)
-st)
SET_DEFAULT=true
shift
;;
-tp|--template)
-tp)
TEMPLATE="$2"
shift 2
;;
-hp|--help)
-hp)
show_help
exit 0
;;