1 /* This file was automatically generated from bg-installer.cli, do not edit. */
2 #include <string.h>
3 #include <bglibs/obuf.h>
4 #include <bglibs/cli.h>
5 const char program[] = "bg-installer";
6 const char cli_args_usage[] = "[top-directory] <LIST";
7 const int cli_args_min = 0;
8 const int cli_args_max = 1;
9 const int msg_show_pid = 0;
10 int msg_debug_bits = 0;
cli_show_help(void)11 void cli_show_help(void) {
12   obuf_puts(&outbuf,
13 "Standardized installer program.\n"
14 "\n"
15 "  -v, --verbose  List the files as they are processed.\n"
16 "  -n, --dry-run  Don't modify any files, just display.\n"
17 "  -c, --check    Check destinations instead of installing.\n"
18 "\n"
19 "  -h, --help     Display this help and exit\n"
20 "See http://untroubled.org/bglibs/docs/group__installer.html\n"
21 "for more information\n"
22 "");
23 }
24 int opt_check = 0;
25 int opt_dryrun = 0;
26 int opt_verbose = 0;
27 cli_option cli_options[] = {
28   { 'v', "verbose", CLI_FLAG, 1, &opt_verbose, 0, 0 },
29   { 'n', "dry-run", CLI_FLAG, 1, &opt_dryrun, 0, 0 },
30   { 'c', "check", CLI_FLAG, 1, &opt_check, 0, 0 },
31   {0,0,0,0,0,0,0}
32 };
33