mirror of
https://github.com/open-simh/simtools.git
synced 2026-03-03 10:06:36 +00:00
Fix "-l -".
This commit is contained in:
@@ -235,7 +235,8 @@ int main(
|
||||
} else if (!stricmp(cp, "l")) {
|
||||
/* The option -l gives the listing file name (.LST) */
|
||||
/* -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");
|
||||
}
|
||||
lstname = argv[++arg];
|
||||
|
||||
Reference in New Issue
Block a user