| 90 | } |
| 91 | |
| 92 | LAST_ARG_MUST_BE_NULL |
| 93 | static void verify_opt_compatible(const char *me, const char *base_opt, ...) |
| 94 | { |
| 95 | const char *this_opt; |
| 96 | va_list ap; |
| 97 | |
| 98 | va_start(ap, base_opt); |
| 99 | while ((this_opt = va_arg(ap, const char *))) { |
| 100 | if (va_arg(ap, int)) |
| 101 | break; |
| 102 | } |
| 103 | va_end(ap); |
| 104 | |
| 105 | if (this_opt) |
| 106 | die(_("%s: %s cannot be used with %s"), me, this_opt, base_opt); |
| 107 | } |
| 108 | |
| 109 | static int run_sequencer(int argc, const char **argv, const char *prefix, |
| 110 | struct replay_opts *opts) |