davecheney / httpstat

It's like curl -v, with colours.
MIT License
7.07k stars 385 forks source link

Multiple Parameters Support ? #158

Closed nannanlovelijuan closed 3 years ago

nannanlovelijuan commented 3 years ago

i want I want to ask a question ,why not support Multiple Parameters

    args := flag.Args()
    if len(args) != 1 {
        flag.Usage()
        os.Exit(2)
    }
davecheney commented 3 years ago

No reason that I can recall

nannanlovelijuan commented 3 years ago

No reason that I can recall

Thank you for your answer,If you remember, please let me know

davecheney commented 3 years ago

Thinking about it, I don’t see why we couldn’t fetch multiple urls, some settings might not make sense but I figure thats ok

nannanlovelijuan commented 3 years ago

Thinking about it, I don’t see why we couldn’t fetch multiple urls, some settings might not make sense but I figure thats ok

Thank you,Maybe what I want to ask is this support:

 httpstat httpbin.org/post -X POST --data-urlencode "a=b" -v
davecheney commented 3 years ago

Oh, i see, you're asking do we support gnu style args; the answer is no, all the parameters with a - hyphen have to come before parameters that do not. This is a property of the Go flag package. Sorry

nannanlovelijuan commented 3 years ago

Oh, i see, you're asking do we support gnu style args; the answer is no, all the parameters with a - hyphen have to come before parameters that do not. This is a property of the Go flag package. Sorry

Ok,I'm a beginner,Thanks again