we should display the previous argument here
This commit is contained in:
parent
1aa1a91788
commit
c11b856902
|
@ -137,7 +137,7 @@ readargs(int argc, char *argv[])
|
|||
} else if (!strcmp(argv[i], "-nip")) { /* don't indent to prompt width */
|
||||
indentitems = 0;
|
||||
} else if (i + 1 == argc) {
|
||||
fprintf(stderr, "spmenu: The '%s' option requires an argument.\n", argv[i]);
|
||||
fprintf(stderr, "spmenu: The '%s' option requires an argument.\n", argv[i-1]);
|
||||
|
||||
/* these options take one argument */
|
||||
} else if (!strcmp(argv[i], "-g")) { /* number of columns in grid */
|
||||
|
|
Loading…
Reference in a new issue