summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-02-28 01:22:14 +0000
committergjb <gjb@FreeBSD.org>2013-02-28 01:22:14 +0000
commit9d861dbb5610d58af957b37050bea1b9e6cacf2b (patch)
treeb37b47e8bca233a4d3df0b390f4c9b34b3bf27e1 /usr.bin
parent552b404fb268fbef96316a878c5e8b00892d1dfd (diff)
downloadFreeBSD-src-9d861dbb5610d58af957b37050bea1b9e6cacf2b.zip
FreeBSD-src-9d861dbb5610d58af957b37050bea1b9e6cacf2b.tar.gz
Properly handle '-h' argument.
PR: 176332 Reviewed by: scottl MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dc/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/dc/dc.c b/usr.bin/dc/dc.c
index d5edadb..546b247 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)
OpenPOWER on IntegriCloud