Skip to content

Make option parsing compatible with wget

Avinash Sonawane requested to merge rootkea/wget2:optional-arg into master

Currently,

$ echo "http_proxy" > ~/.wget2rc
$ wget2 https://rootkea.me
Unknown option 'http'
  1. Linear search is unnecessary. Comparison with ignoring - and _ can be done in compare function of bsearch

$ info wget
...
The commands are case-, underscore- and minus-insensitive.  Thus
‘DIr__PrefiX’, ‘DIr-PrefiX’ and ‘dirprefix’ are the same.
...

I have made .wget2rc commands case-insensitive. Also now consecutive _ and - are ignore for .wgetrc commands so are now truly minus- and underscore-insensitive.

Edited by Avinash Sonawane

Merge request reports