bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] datamash: fix --filler=X default in --help output


From: Erik Auerswald
Subject: [PATCH] datamash: fix --filler=X default in --help output
Date: Sun, 15 May 2022 17:04:00 +0200

The help output for the --filler=X option contains a format
specifier (%s) to print the default filler value, but it is
printed using fputs() and no value for %s is provided.

* src/datamash.c (usage): use printf() and provide default value.
---
 src/datamash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/datamash.c b/src/datamash.c
index fc0ade3..e76c904 100644
--- a/src/datamash.c
+++ b/src/datamash.c
@@ -250,9 +250,9 @@ which require a pair of fields (e.g. 'pcov 2:6').\n"), 
stdout);
       fputs (_("\
       --no-strict           allow lines with varying number of fields\n\
 "), stdout);
-      fputs (_("\
+      printf (_("\
       --filler=X            fill missing values with X (default %s)\n\
-"), stdout);
+"), missing_field_filler);
 
       fputs ("\n", stdout);
       fputs (_("General Options:\n"),stdout);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]