Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 01:22:15 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r247441 - head/usr.bin/dc
Message-ID:  <201302280122.r1S1MFUB083622@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb (doc,ports committer)
Date: Thu Feb 28 01:22:14 2013
New Revision: 247441
URL: http://svnweb.freebsd.org/changeset/base/247441

Log:
  Properly handle '-h' argument.
  
  PR:		176332
  Reviewed by:	scottl
  MFC after:	3 days

Modified:
  head/usr.bin/dc/dc.c

Modified: head/usr.bin/dc/dc.c
==============================================================================
--- head/usr.bin/dc/dc.c	Thu Feb 28 01:05:48 2013	(r247440)
+++ head/usr.bin/dc/dc.c	Thu Feb 28 01:22:14 2013	(r247441)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302280122.r1S1MFUB083622>