mirror of
https://github.com/open-simh/simtools.git
synced 2026-05-04 23:15:19 +00:00
Fix "-l -".
This commit is contained in:
@@ -235,7 +235,8 @@ int main(
|
|||||||
} else if (!stricmp(cp, "l")) {
|
} else if (!stricmp(cp, "l")) {
|
||||||
/* The option -l gives the listing file name (.LST) */
|
/* The option -l gives the listing file name (.LST) */
|
||||||
/* -l - enables listing to stdout. */
|
/* -l - enables listing to stdout. */
|
||||||
if(arg >= argc-1 || *argv[arg+1] == '-') {
|
if(arg >= argc-1 ||
|
||||||
|
(argv[arg+1][0] == '-' && argv[arg+1][1] != '\0')) {
|
||||||
usage("-l must be followed by the listing file name (- for standard output)\n");
|
usage("-l must be followed by the listing file name (- for standard output)\n");
|
||||||
}
|
}
|
||||||
lstname = argv[++arg];
|
lstname = argv[++arg];
|
||||||
|
|||||||
Reference in New Issue
Block a user