/[mailutils]/mailutils/mailbox/mu_argp.c
ViewVC logotype

Diff of /mailutils/mailbox/mu_argp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by gray, Wed Dec 4 13:22:52 2002 UTC revision 1.16 by gray, Tue Dec 10 07:33:13 2002 UTC
# Line 47  Line 47 
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    
# Line 60  static struct argp_option mu_common_argp Line 61  static struct argp_option mu_common_argp
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    
# Line 348  mu_common_argp_parser (int key, char *ar Line 349  mu_common_argp_parser (int key, char *ar
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);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26