Properly handle '-h' argument.

PR:		176332
Reviewed by:	scottl
MFC after:	3 days
This commit is contained in:
Glen Barber 2013-02-28 01:22:14 +00:00
parent 5bf80db676
commit eff269ee18

View File

@ -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)