47 |
#define ARG_LOG_FACILITY 1 |
#define ARG_LOG_FACILITY 1 |
48 |
#define ARG_LOCK_FLAGS 2 |
#define ARG_LOCK_FLAGS 2 |
49 |
#define ARG_SHOW_OPTIONS 3 |
#define ARG_SHOW_OPTIONS 3 |
50 |
|
#define ARG_LICENSE 4 |
51 |
|
|
52 |
const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; |
const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; |
53 |
|
|
61 |
|
|
62 |
/* Option to print the license. */ |
/* Option to print the license. */ |
63 |
static struct argp_option mu_license_argp_option[] = { |
static struct argp_option mu_license_argp_option[] = { |
64 |
{ "license", 'L', NULL, 0, "Print license and exit", -2 }, |
{ "license", ARG_LICENSE, NULL, 0, "Print license and exit", -2 }, |
65 |
{ NULL, 0, NULL, 0, NULL, 0 } |
{ NULL, 0, NULL, 0, NULL, 0 } |
66 |
}; |
}; |
67 |
|
|
349 |
switch (key) |
switch (key) |
350 |
{ |
{ |
351 |
/* common */ |
/* common */ |
352 |
case 'L': |
case ARG_LICENSE: |
353 |
printf ("License for %s:\n\n", argp_program_version); |
printf ("License for %s:\n\n", argp_program_version); |
354 |
printf ("%s", mu_license_text); |
printf ("%s", mu_license_text); |
355 |
exit (0); |
exit (0); |