manage.sh: add help
This commit is contained in:
parent
fd037b930b
commit
28d59a7c0e
1 changed files with 14 additions and 1 deletions
15
manage.sh
15
manage.sh
|
|
@ -193,7 +193,7 @@ case $1 in
|
||||||
("install")
|
("install")
|
||||||
mode="install"
|
mode="install"
|
||||||
|
|
||||||
if [ -z $2 ] ; then
|
if [ -z $2 ] || [ $2 = "--help" ]; then
|
||||||
echo "usage: manage.sh install [target] (source)"
|
echo "usage: manage.sh install [target] (source)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -201,6 +201,19 @@ case $1 in
|
||||||
install_target=$2
|
install_target=$2
|
||||||
install_source=$3
|
install_source=$3
|
||||||
|
|
||||||
|
;;
|
||||||
|
("help"|"--help")
|
||||||
|
if [ -z $2 ] ; then
|
||||||
|
cat <<EOF
|
||||||
|
usage: manage.sh [command] [options]
|
||||||
|
|
||||||
|
Commands:
|
||||||
|
|
||||||
|
status View all dotfiles
|
||||||
|
install Install new dotfiles
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unrecognized command: '$1'"
|
echo "Unrecognized command: '$1'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue