updates for --help
This commit is contained in:
13
checkin-all
13
checkin-all
@@ -4,6 +4,19 @@ set -euo pipefail
|
||||
INTERACTIVE=true
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
--help|-h)
|
||||
cat <<'EOF'
|
||||
Usage: checkin-all [options]
|
||||
|
||||
Check git status for all repos matching *schmeeve* in ~/git/,
|
||||
and interactively prompt to commit & push changes.
|
||||
|
||||
Options:
|
||||
-n, --no-interactive Auto-commit changes with timestamp message
|
||||
-h, --help Show this help message and exit
|
||||
EOF
|
||||
exit 0
|
||||
;;
|
||||
--no-interactive|-n) INTERACTIVE=false ;;
|
||||
esac
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user