mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
mkd2html wasn't passing pgm to hoptusage()
This commit is contained in:
+2
-2
@@ -106,7 +106,7 @@ char **argv;
|
|||||||
hopterr(&flags, 1);
|
hopterr(&flags, 1);
|
||||||
while ( res = gethopt(&flags, opts, NROPTS) ) {
|
while ( res = gethopt(&flags, opts, NROPTS) ) {
|
||||||
if ( res == HOPTERR ) {
|
if ( res == HOPTERR ) {
|
||||||
hoptusage(argv[0], opts, NROPTS, "source [dest]");
|
hoptusage(pgm, opts, NROPTS, "source [dest]");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ char **argv;
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
hoptusage(argv[0], opts, NROPTS, "source [dest]");
|
hoptusage(pgm, opts, NROPTS, "source [dest]");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user