mirror of
https://github.com/borgbackup/borg.git
synced 2026-10-12 02:11:36 +00:00
Unlike the other options removed recently, --iec did work for borg2 repos - but the same setting is better placed in the environment: it is a display preference one usually wants for all borg invocations, not per command. BORG_IEC=yes now selects IEC units (1KiB = 1024B); "true" and "1" are accepted, too, because jsonargparse's automatic BORG_<OPTION> environment variables accepted these for --iec. Note that removing the option also removes that automatic environment variable, so the new use_iec_units() helper reads BORG_IEC explicitly. The iec=... plumbing through Archive, Statistics, ArchiveFormatter and Cache is unchanged, only the places reading args.iec now call use_iec_units().