Commit e8afa273 e8afa2739cb95c3821f9c92fb89f24e6b9f9f584 by Sergey Poznyakoff

New command line option --debug.

1 parent 0aa6344c
......@@ -29,7 +29,7 @@ static struct argp_option options[] = {
{"form", 'F', N_("FILE"), 0, N_("Read format from given file")},
{"format", 't', N_("FORMAT"), 0, N_("Use this format string")},
{"dump", 'd', NULL, 0, N_("Dump the listing of compiled format code")},
{ "debug", 'D', NULL, 0, N_("Enable parser debugging output"),},
{ 0 }
};
......@@ -76,6 +76,10 @@ opt_handler (int key, char *arg, void *unused)
action = action_dump;
break;
case 'D':
mh_format_debug (1);
break;
default:
return 1;
}
......