static const char* doc = "The Pakfire Build Service Client Tool";
enum {
- OPT_DEBUG = 1,
+ OPT_DEBUG = 1,
+ OPT_DISTRO = 2,
};
static struct argp_option options[] = {
- { "debug", OPT_DEBUG, NULL, 0, "Run in debug mode", 0 },
+ { "debug", OPT_DEBUG, NULL, 0, "Run in debug mode", 0 },
+ { "distro", OPT_DISTRO, "DISTRO", 0, "Choose the distribution", 0 },
{ NULL },
};
pakfire_ctx_set_log_level(config->ctx, LOG_DEBUG);
break;
+ case OPT_DISTRO:
+ config->distro = arg;
+ break;
+
default:
return ARGP_ERR_UNKNOWN;
}