| > > I've made a patch for allowing "k,m,g"
> > (meaning KBytes, MBytes or GBytes) on the following options:
> > "-M" -> to specify maximun overall size that can be scanned
> > "-A" -> to specify maximun transfer rate.
>
> Unfortunately this won't work well in the current commandline parser - as
you can include multiple options in one shot, such as:
>
> httrack -Wc2A10000M1000000%c1 www.example.com
>
> Yes, the syntax is a bit crazy, but for historical reasons (ie. third party
programs using the engine), I can't break everything easily
>
Oh that's true, I was asleep :)
What about this ?
httrack -Wc2A10mbytesM10gbytes%c1 www.example.com
If I check for the whole word after the digits, it
shouldn't be any ambiguity, should it ? Mmmmph...
could it ever happen that "-{k.m.g}bytes" had a meaning
as single options ?¿, e.g: "-k -b -y -t -e -s". I think
that if somebody writes "-A10mbytes....", he stands for
"-A10000000", if he wants to mean other thing, he should have written it as
"-A10btesym".
If this is still confusing, the idea can be easily extended,
what about "httrack -M10thisisforspecifyingmbytesWc2%c1"...
tho I dont like long words :P
| |