Hello Pádraig, Thank you for all the recent work on numfmt!
I noticed a typo in the help section, in my original program (The suffix says "G" but the values are mega). Also removes an extra space. Attached is a patch. Thanks! -gordon
>From b5b9e3281298fa14d7752579a63bfe3956d982f4 Mon Sep 17 00:00:00 2001 From: Assaf Gordon <assafgor...@gmail.com> Date: Tue, 5 Feb 2013 11:04:41 -0500 Subject: [PATCH] numfmt: fix help section typo * src/numfmt.c: change erroneous "G" to "M". --- src/numfmt.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/numfmt.c b/src/numfmt.c index cccd1d1..b37724e 100644 --- a/src/numfmt.c +++ b/src/numfmt.c @@ -856,19 +856,19 @@ UNIT options:\n\ auto Accept optional single-letter/two-letter suffix:\n\ 1K = 1000\n\ 1Ki = 1024\n\ - 1G = 1000000\n\ - 1Gi = 1048576\n\ + 1M = 1000000\n\ + 1Mi = 1048576\n\ si Accept optional single letter suffix:\n\ 1K = 1000\n\ - 1G = 1000000\n\ + 1M = 1000000\n\ ...\n\ iec Accept optional single letter suffix:\n\ 1K = 1024\n\ - 1G = 1048576\n\ + 1M = 1048576\n\ ...\n\ iec-i Accept optional two-letter suffix:\n\ 1Ki = 1024\n\ - 1Gi = 1048576\n\ + 1Mi = 1048576\n\ ...\n\ \n\ "), stdout); -- 1.7.7.4