Mercurial > ec-dotfiles
diff moefetch.sh @ 174:0948e76a57a1
added help. Bump to 0.1-beta2
author | edhoprima@gmail.com <edhoprima@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 20:23:55 +0000 |
parents | 2b7c8c1ecdfe |
children | 5b7a154dbd21 |
line wrap: on
line diff
--- a/moefetch.sh Fri Jun 05 20:12:15 2009 +0000 +++ b/moefetch.sh Fri Jun 05 20:23:55 2009 +0000 @@ -40,7 +40,7 @@ # useless welcome message. Also version Msg_Welcome() { - MOEFETCHVERSION="0.1-beta" + MOEFETCHVERSION="0.1-beta2" cat <<EOF moefetch ${MOEFETCHVERSION} Copyright (c) 2009 edogawaconan <me@myconan.net> @@ -57,7 +57,18 @@ # help message Err_Help() { cat <<EOF -Usage: moefetch (quick)fetch|status <TAGS> +moefetch.sh COMMAND [-u SITE_URL] TAGS + + COMMAND: + (quick)fetch: do a complete update. Add prefix quick to skip file checking + check: get list of new files, clean up local folder and print total new files + + -u SITE_URL: + Specify URL of the Danbooru powered site you want to leech from. Default is ${DEFAULT_SITE} + + TAGS: + Tags you want to download. Separated by spaces. Tag name follows standard Danbooru tagging scheme + EOF exit 0 } @@ -228,7 +239,7 @@ [ $# -lt 2 ] && Err_Help case "$1" in - status|fetch|quickfetch) + check|fetch|quickfetch) echo "Starting..." JOB="$1" ;; @@ -263,7 +274,7 @@ # let's do the job! case "${JOB}" in - status) + check) Generate_Link Check_Files ;;