aboutsummaryrefslogtreecommitdiff
path: root/center.c
diff options
context:
space:
mode:
Diffstat (limited to 'center.c')
-rw-r--r--center.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/center.c b/center.c
index 61193a1..d02dcfc 100644
--- a/center.c
+++ b/center.c
@@ -29,6 +29,7 @@
#include <unistd.h>
#define ESC 033
+#define PROG_ARGS "[-elr] [-t width] [-w width] [file ...]\n"
#define die(...) err(EXIT_FAILURE, __VA_ARGS__)
#define diex(...) errx(EXIT_FAILURE, __VA_ARGS__)
@@ -92,11 +93,7 @@ main(int argc, char **argv)
width = polong(optarg, "output width");
break;
default:
- fprintf(
- stderr,
- "Usage: %s [-elr] [-t width] [-w width] [file ...]\n",
- argv[0]
- );
+ fprintf(stderr, "Usage: %s " PROG_ARGS, argv[0]);
exit(EXIT_FAILURE);
}
}