summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ce036c)
This flag shouldn't try and consume the following argument. It should
behave like every other flag which takes an optional argument when
parsed by getopt_long.
case 'b':
arg_boot = true;
case 'b':
arg_boot = true;
-
- if (optarg)
- arg_boot_descriptor = optarg;
- else if (optind < argc) {
- int boot;
-
- if (argv[optind][0] != '-' ||
- safe_atoi(argv[optind], &boot) >= 0) {
- arg_boot_descriptor = argv[optind];
- optind++;
- }
- }
+ arg_boot_descriptor = optarg;