hpost: better handling of optional -u flag
This commit is contained in:
parent
7c3ea4360b
commit
b5a6a26fd8
1 changed files with 2 additions and 3 deletions
|
@ -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){
|
||||||
|
|
Loading…
Reference in a new issue