]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/test/run-usage.c
opt: much prettier usage (using terminal size)
[ccan] / ccan / opt / test / run-usage.c
index fa1dc64c112fe46dc36e02cc4b140de50681372c..7d94ced219b59868883801cb26bd7f362019e4f7 100644 (file)
@@ -4,6 +4,15 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include "utils.h"
+
+/* Ensure width is sane. */
+static const char *getenv_override(const char *name)
+{
+       return "100";
+}
+
+#define getenv getenv_override
+
 #include <ccan/opt/opt.c>
 #include <ccan/opt/usage.c>
 #include <ccan/opt/helpers.c>