[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] --bit option name
From: |
Tim Ruehsen |
Subject: |
Re: [Bug-wget] --bit option name |
Date: |
Wed, 6 Jun 2012 13:10:59 +0200 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; ) |
Am Wednesday 06 June 2012 schrieb Hrvoje Niksic:
> Tim Ruehsen <address@hidden> writes:
> > Am Tuesday 05 June 2012 schrieb Hrvoje Niksic:
> >> I'd like to suggest that the new --bit option be named --bps instead.
> >> The use case for this option is reporting of download speed in [gmk]bps,
> >> not expressing all quantities in bits. Besides, the word "bit" has
> >> other meanings (small piece), while "bps" is quite recognizable to the
> >> target audience for the option.
> >
> > I would like to see --report-bps. It explains itself, well, at least
> > better than --bps which could be anything.
>
> Good point. To me --report-bps is also an improvement over --bits.
>
> > To regard the current question of Fernando Cassia <address@hidden>
> > (bug- wget 5.6.2012) (Is there any way to make wget report download
> > speed in Kbps not MBps at the end of the transfer?):
> >
> > --report-bps replaces --bit
> > --report-[gmkn]bps would respect the user's demand for explicitly gbps,
> > mbps and kbps, with nbps = plain bps without giga, mega or kilo.
> >
> > What do you think ?
>
> I think that Wget has already way too many options. :) Note that you
> also can't choose how the download speed will be shown with byte
> reporting.
>
> But while we're bikeshedding, how about:
>
> --report-speed=(bps|nbps|kbps|...)
>
> and additional features can be added later as syntax additions to the
> value recognized by that option.
Very good idea. I like more this generalized approach.
I would like to keep the args close to what is described at wikipedia
http://en.wikipedia.org/wiki/Byte.
b=bits
B=bytes
decimal (1000^n):
k, M, G, ...
IEC (1024^n):
K/Ki, Mi, Gi, ...
So, we have three types of information, which can be combined:
a) element size: bits | bytes (default 'bytes')
b) display type: decimal | iec (default 'decimal' if a=bits, iec if a=bytes)
c) display unit: auto | plain | kilo | mega| giga (default auto)
This comes out as --report-speed=flag[, flag [,...]]
Examples
--report-speed=bits
--report-speed=bytes,iec,mega
We could introduce some abbrevations like
k = decimal,kilo
Mi = iec,mega
kbps = bits,decimal,auto
kBps = bytes,iec,kilo
KiBps = bytes,iec,kilo
...
How do you like that ?
Tim
- [Bug-wget] --bit option name, Hrvoje Niksic, 2012/06/05
- Re: [Bug-wget] --bit option name, Tim Ruehsen, 2012/06/05
- Re: [Bug-wget] --bit option name, Ángel González, 2012/06/05
- Re: [Bug-wget] --bit option name, Ivan Shmakov, 2012/06/05
- Re: [Bug-wget] --bit option name, Hrvoje Niksic, 2012/06/06
- Re: [Bug-wget] --bit option name,
Tim Ruehsen <=
- Re: [Bug-wget] --bit option name, Hrvoje Niksic, 2012/06/06
- Re: [Bug-wget] --bit option name, Tim Ruehsen, 2012/06/06
- Re: [Bug-wget] --bit option name, Giuseppe Scrivano, 2012/06/06
- Re: [Bug-wget] --bit option name, Tim Ruehsen, 2012/06/07
- Re: [Bug-wget] --bit option name, Giuseppe Scrivano, 2012/06/07
- Re: [Bug-wget] --bit option name, Tim Ruehsen, 2012/06/08
- [Bug-wget] Exit statuses in man page [Re: --bit option name], Micah Cowan, 2012/06/08
- Re: [Bug-wget] --bit option name, Giuseppe Scrivano, 2012/06/09
- [Bug-wget] [OT] WYSIWYG vs. WYMIWYG, Ivan Shmakov, 2012/06/13
Re: [Bug-wget] --bit option name, Giuseppe Scrivano, 2012/06/06