aboutsummaryrefslogtreecommitdiffstats
path: root/troff/troff.d/font/devhtml/makefont.c
diff options
context:
space:
mode:
Diffstat (limited to 'troff/troff.d/font/devhtml/makefont.c')
-rw-r--r--troff/troff.d/font/devhtml/makefont.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/troff/troff.d/font/devhtml/makefont.c b/troff/troff.d/font/devhtml/makefont.c
index a9b4da08d591..d0587d98dae3 100644
--- a/troff/troff.d/font/devhtml/makefont.c
+++ b/troff/troff.d/font/devhtml/makefont.c
@@ -49,8 +49,10 @@ main(int argc, char **argv) {
char *b, *b0;
ssize_t s;
progname = argv[0];
- if (argc != 2) return usage();
+ if (argc < 2 || argc > 3) return usage();
fontname = argv[1];
+ if (argc == 3)
+ charfile = argv[2];
s = read_file(&b0);
b = b0;
if (!(i = find_font(&b, &s))) {
@@ -189,7 +191,7 @@ next_line(char **b, ssize_t *s) {
static int
usage(void) {
fprintf(stderr,
-"Usage: ./%s <font_name> >> <font_name>\n"
+"Usage: ./%s <font_name> [charsetfile] >> <font_name>\n"
, progname);
return EXIT_FAILURE;
}