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