support a --total option to only output the total

This is useful to handle internally so that we can error
in the edge cases where printing a total is not possible.

Not we don't output a space between the number and unit
in the total, as the single number should be easy to parse.