337 |
{ |
{ |
338 |
int c, option_index; |
int c, option_index; |
339 |
|
|
340 |
program_name = basename(argv[0]); |
program_name = xstrdup(basename(argv[0])); |
341 |
|
|
342 |
while ( (c = getopt_long(argc, argv, args, |
while ( (c = getopt_long(argc, argv, args, |
343 |
long_options, &option_index)) != EOF ) { |
long_options, &option_index)) != EOF ) { |
359 |
/* if we have any arguments, parse them in command line order, else |
/* if we have any arguments, parse them in command line order, else |
360 |
open stdin */ |
open stdin */ |
361 |
if (optind == argc) { |
if (optind == argc) { |
362 |
so_name[0] = "-"; |
so_name[0] = xstrdup("-"); |
363 |
parse_file(); |
parse_file(); |
364 |
} else { |
} else { |
365 |
while (optind < argc) { |
while (optind < argc) { |