hpost: better handling of optional -u flag

This commit is contained in:
cinap_lenrek 2012-10-18 14:55:56 +02:00
parent 7c3ea4360b
commit b5a6a26fd8

View file

@ -23,13 +23,12 @@ while(~ $1 -*){
shift shift
} }
# tired of typing -u if(~ $#url 0){
if(~ $1 http://* https://*){
url=$1 url=$1
shift shift
} }
if(~ $#url 0) if(~ $url '')
usage usage
while(! ~ $#* 0){ while(! ~ $#* 0){