davecheney / httpstat

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

Multiple Parameters Support ? #158

Closed nannanlovelijuan closed 2 years ago

nannanlovelijuan commented 2 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 2 years ago

No reason that I can recall

nannanlovelijuan commented 2 years ago

No reason that I can recall

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

davecheney commented 2 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 2 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 2 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 2 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