updates for --help
This commit is contained in:
16
pull-all
16
pull-all
@@ -1,6 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
--help|-h)
|
||||
cat <<'EOF'
|
||||
Usage: pull-all [options]
|
||||
|
||||
Pull latest changes for all repos matching *schmeeve* in ~/git/.
|
||||
|
||||
Options:
|
||||
-h, --help Show this help message and exit
|
||||
EOF
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
GIT_HOME="${HOME}/git"
|
||||
|
||||
for dir in "${GIT_HOME}"/*/ "${HOME}/Dotfiles"; do
|
||||
|
||||
Reference in New Issue
Block a user