From 10cb8e0ec08d430d697fb8a58caaefb5aea32928 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 17 Feb 2017 14:02:13 -0600 Subject: [PATCH] man/help: show recently added r|R unit --- tools/args.h | 11 +++++++---- tools/vals.h | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/tools/args.h b/tools/args.h index 149b5f66a..1f3ace734 100644 --- a/tools/args.h +++ b/tools/args.h @@ -672,10 +672,13 @@ arg(unconfigured_ARG, '\0', "unconfigured", 0, 0, 0, "Internal option used for generating config file during build.\n") arg(units_ARG, '\0', "units", units_VAL, 0, 0, - "All sizes are output in these units: (h)uman-readable, (b)ytes, (s)ectors,\n" - "(k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes.\n" - "Capitalise to use multiples of 1000 (S.I.) instead of 1024. Can also specify\n" - "custom units e.g. --units 3M.\n") + "All sizes are output in these units:\n" + "human-(r)eadable with rounding,\n" + "(h)uman-readable, (b)ytes, (s)ectors, (k)ilobytes, (m)egabytes,\n" + "(g)igabytes, (t)erabytes, (p)etabytes, (e)xabytes.\n" + "Capitalise to use multiples of 1000 (S.I.) instead of 1024.\n" + "Custom units can be specified, e.g. --units 3M.\n" + "r|R rounds numbers and displays the '<' prefix before rounded values.\n") arg(unquoted_ARG, '\0', "unquoted", 0, 0, 0, "When used with --nameprefixes, output values in the field=value\n" diff --git a/tools/vals.h b/tools/vals.h index d9b0064c6..88c446e50 100644 --- a/tools/vals.h +++ b/tools/vals.h @@ -122,7 +122,7 @@ val(numsigned_VAL, int_arg_with_sign, "SNumber", "[+|-]Number") val(numsignedper_VAL, int_arg_with_sign_and_percent, "SNumberP", "[+|-]Number[%VG|%PVS|%FREE]") val(permission_VAL, permission_arg, "Permission", "rw|r") val(metadatatype_VAL, metadatatype_arg, "MetadataType", "lvm2|lvm1") -val(units_VAL, string_arg, "Units", "h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E") +val(units_VAL, string_arg, "Units", "r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E") val(segtype_VAL, segtype_arg, "SegType", "linear|striped|snapshot|mirror|raid*|thin|cache|thin-pool|cache-pool") val(alloc_VAL, alloc_arg, "Alloc", "contiguous|cling|cling_by_tags|normal|anywhere|inherit") val(locktype_VAL, locktype_arg, "LockType", "sanlock|dlm|none") -- 2.43.5