|
Lines 221-227
Link Here
|
| 221 |
int arg_cb(int, char **argv, int &i) { |
221 |
int arg_cb(int, char **argv, int &i) { |
| 222 |
const char *s = argv[i]; |
222 |
const char *s = argv[i]; |
| 223 |
if (!s) return 0; |
223 |
if (!s) return 0; |
| 224 |
if (*s != '-') return 0; |
224 |
if (*s != '-' || s[1]=='\0') return 0; |
| 225 |
for (s++; *s; s++) { |
225 |
for (s++; *s; s++) { |
| 226 |
if (*s == 'a') all_files = 1; |
226 |
if (*s == 'a') all_files = 1; |
| 227 |
else if (*s == 'q') quiet = 1; |
227 |
else if (*s == 'q') quiet = 1; |
|
Lines 257-268
Link Here
|
| 257 |
return 1; |
257 |
return 1; |
| 258 |
} else { |
258 |
} else { |
| 259 |
// plain "-" indicates pipe |
259 |
// plain "-" indicates pipe |
| 260 |
argv[n] = 0; |
|
|
| 261 |
} |
260 |
} |
| 262 |
} |
261 |
} |
| 263 |
while (n < argc) { |
262 |
while (n < argc) { |
| 264 |
OutputWindow* d = OutputWindow::make(argv[n++]); |
263 |
OutputWindow* d = OutputWindow::make(strcmp(argv[n],"-")==0 ? NULL : argv[n]); |
| 265 |
if (d) d->show(argc,argv); |
264 |
if (d) d->show(argc,argv); |
|
|
265 |
n++; |
| 266 |
} |
266 |
} |
| 267 |
} else { |
267 |
} else { |
| 268 |
// normal gui: |
268 |
// normal gui: |