diskus icon indicating copy to clipboard operation
diskus copied to clipboard

Print formatted result on verbose output

Open ranisalt opened this issue 6 years ago • 3 comments

As I suggested on a commit

ranisalt avatar Sep 23 '19 02:09 ranisalt

Thank you for your contribution. Instead of overloading the meaning of --verbose, what do you think of the following option:

We change the --size-format option to take four (instead of two) parameters:

  • decimal
  • binary
  • plain
  • auto

By default, the format is set to auto which automatically chooses either decimal (if we write to a TTY) or plain (if we don't). This way, users can still overwrite the auto format by explicitly choosing decimal, binary, or plain.

sharkdp avatar Sep 23 '19 06:09 sharkdp

This is currently above my knowledge of Rust :stuck_out_tongue_closed_eyes:

ranisalt avatar Oct 01 '19 17:10 ranisalt

Ok, no worries. I'll take a look at this when I find the time.

sharkdp avatar Oct 02 '19 05:10 sharkdp