Commit c02bc60a c02bc60a186dfa40a7fede1f62eeeb65a3d19895 by Sergey Poznyakoff

(mu_license_argp_option): Removed short option 'L', it is used by sieve argp stuff.

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