irb icon indicating copy to clipboard operation
irb copied to clipboard

Use `OptionParser` to parse options

Open st0012 opened this issue 2 years ago • 0 comments

Currently IRB parses command line options with IRB.parse_opts, which means the output of irb --help needs to be manually updated. We should use OptionParser instead to make the task easier.

st0012 avatar Jul 23 '23 20:07 st0012

I would be open to possible refactoring/method extraction so that you could override methods to get the behavior you want. However, understand that I am not the net-http maintainer, so you should get @nurse's opinion.

jeremyevans avatar Jun 01 '23 21:06 jeremyevans

I once discussed about a hook for DNS resolution, but failed to get a consensus. I'll discussed about this topic again in a next developer meeting.

nurse avatar Oct 05 '23 07:10 nurse

I should note that Golang supports something similar: https://www.agwa.name/blog/post/preventing_server_side_request_forgery_in_golang

Reference: https://github.com/golang/go/issues/55301.

stanhu avatar Aug 08 '24 21:08 stanhu