From eff269ee18dc7dc7b465730e5d76830fe93b4256 Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 28 Feb 2013 01:22:14 +0000 Subject: [PATCH] Properly handle '-h' argument. PR: 176332 Reviewed by: scottl MFC after: 3 days --- usr.bin/dc/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/dc/dc.c b/usr.bin/dc/dc.c index d5edadb7989..546b24706ee 100644 --- a/usr.bin/dc/dc.c +++ b/usr.bin/dc/dc.c @@ -84,7 +84,7 @@ main(int argc, char *argv[]) bool extended_regs = false, preproc_done = false; /* accept and ignore a single dash to be 4.4BSD dc(1) compatible */ - while ((ch = getopt_long(argc, argv, "e:f:Vx", long_options, NULL)) != -1) { + while ((ch = getopt_long(argc, argv, "e:f:hVx", long_options, NULL)) != -1) { switch (ch) { case 'e': if (!preproc_done)