-"Usage: petitboot-twin [-d, --start-daemon] [-h, --help] [-l, --log log-file]\n"
-" [-r, --reset-defaults][-t, --timeout] [-V, --version]\n"
+"Usage: petitboot-twin [-h, --help] [-l, --log log-file]\n"
+" [-r, --reset-defaults] [-s, --start-daemon]\n"
+" [-t, --timeout] [-V, --version]\n"
int pbt_opts_parse(struct pbt_opts *opts, int argc, char *argv[])
{
static const struct option long_options[] = {
int pbt_opts_parse(struct pbt_opts *opts, int argc, char *argv[])
{
static const struct option long_options[] = {
{"fbdev", no_argument, NULL, 'f'},
{"help", no_argument, NULL, 'h'},
{"log", required_argument, NULL, 'l'},
{"reset-defaults", no_argument, NULL, 'r'},
{"fbdev", no_argument, NULL, 'f'},
{"help", no_argument, NULL, 'h'},
{"log", required_argument, NULL, 'l'},
{"reset-defaults", no_argument, NULL, 'r'},
{"timeout", no_argument, NULL, 't'},
{"version", no_argument, NULL, 'V'},
{"x11", no_argument, NULL, 'x'},
{ NULL, 0, NULL, 0},
};
{"timeout", no_argument, NULL, 't'},
{"version", no_argument, NULL, 'V'},
{"x11", no_argument, NULL, 'x'},
{ NULL, 0, NULL, 0},
};
static const struct pbt_opts default_values = {
.backend = pbt_twin_x11,
.log_file = "/var/log/petitboot/petitboot-twin.log",
static const struct pbt_opts default_values = {
.backend = pbt_twin_x11,
.log_file = "/var/log/petitboot/petitboot-twin.log",