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:
36
sf-logs-tail
36
sf-logs-tail
@@ -21,15 +21,15 @@ show_usage() {
|
||||
echo " sf-logs-tail [OPTIONS]"
|
||||
echo ""
|
||||
echo "OPTIONS:"
|
||||
echo " -to, --target-org ORG Target org username or alias"
|
||||
echo " -ui, --user-id USER Specific user ID to monitor (default: current user)"
|
||||
echo " -lv, --level LEVEL Log level: ERROR, WARN, INFO, DEBUG, FINE, FINER, FINEST"
|
||||
echo " -dr, --duration MINUTES How long to tail logs in minutes (default: 30)"
|
||||
echo " -ft, --filter PATTERN Filter log entries containing pattern"
|
||||
echo " -ax, --apex-only Show only Apex-related log entries"
|
||||
echo " -nc, --no-colors Disable colored output"
|
||||
echo " -vb, --verbose Enable verbose output with timestamps"
|
||||
echo " -hp, --help Show this help message"
|
||||
echo " -to Target org username or alias"
|
||||
echo " -ui Specific user ID to monitor (default: current user)"
|
||||
echo " -lv Log level: ERROR, WARN, INFO, DEBUG, FINE, FINER, FINEST"
|
||||
echo " -dr How long to tail logs in minutes (default: 30)"
|
||||
echo " -ft Filter log entries containing pattern"
|
||||
echo " -ax Show only Apex-related log entries"
|
||||
echo " -nc Disable colored output"
|
||||
echo " -vb Enable verbose output with timestamps"
|
||||
echo " -hp Show this help message"
|
||||
echo ""
|
||||
echo "EXAMPLES:"
|
||||
echo " sf-logs-tail # Tail logs for default org"
|
||||
@@ -153,39 +153,39 @@ VERBOSE=false
|
||||
# Parse command line arguments
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
-to|--target-org)
|
||||
-to)
|
||||
TARGET_ORG="$2"
|
||||
shift 2
|
||||
;;
|
||||
-ui|--user-id)
|
||||
-ui)
|
||||
USER_ID="$2"
|
||||
shift 2
|
||||
;;
|
||||
-lv|--level)
|
||||
-lv)
|
||||
LOG_LEVEL="$2"
|
||||
shift 2
|
||||
;;
|
||||
-dr|--duration)
|
||||
-dr)
|
||||
DURATION="$2"
|
||||
shift 2
|
||||
;;
|
||||
-ft|--filter)
|
||||
-ft)
|
||||
FILTER_PATTERN="$2"
|
||||
shift 2
|
||||
;;
|
||||
-ax|--apex-only)
|
||||
-ax)
|
||||
APEX_ONLY=true
|
||||
shift
|
||||
;;
|
||||
-nc|--no-colors)
|
||||
-nc)
|
||||
NO_COLORS=true
|
||||
shift
|
||||
;;
|
||||
-vb|--verbose)
|
||||
-vb)
|
||||
VERBOSE=true
|
||||
shift
|
||||
;;
|
||||
-hp|--help)
|
||||
-hp)
|
||||
show_usage
|
||||
exit 0
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user