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
}
# tired of typing -u
if(~ $1 http://* https://*){
if(~ $#url 0){
url=$1
shift
}
if(~ $#url 0)
if(~ $url '')
usage
while(! ~ $#* 0){