Commit 022f12d1 022f12d1989d431ebd3c959b6b0d5a1116ec7116 by Sergey Poznyakoff

(daemon option group): New option --transcript.

1 parent 6f00e1af
...@@ -143,6 +143,8 @@ static struct argp_option mu_daemon_argp_option[] = { ...@@ -143,6 +143,8 @@ static struct argp_option mu_daemon_argp_option[] = {
143 "Listen on specified port number", 0}, 143 "Listen on specified port number", 0},
144 {"timeout", 't', "NUMBER", 0, 144 {"timeout", 't', "NUMBER", 0,
145 "Set idle timeout value to NUMBER seconds", 0}, 145 "Set idle timeout value to NUMBER seconds", 0},
146 {"transcript", 'x', NULL, 0,
147 "output session transcript via syslog", 0},
146 { NULL, 0, NULL, 0, NULL, 0 } 148 { NULL, 0, NULL, 0, NULL, 0 }
147 }; 149 };
148 150
...@@ -482,6 +484,10 @@ mu_daemon_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -482,6 +484,10 @@ mu_daemon_argp_parser (int key, char *arg, struct argp_state *state)
482 p->timeout = strtoul (arg, NULL, 10); 484 p->timeout = strtoul (arg, NULL, 10);
483 break; 485 break;
484 486
487 case 'x':
488 p->transcript = 1;
489 break;
490
485 default: 491 default:
486 return ARGP_ERR_UNKNOWN; 492 return ARGP_ERR_UNKNOWN;
487 } 493 }
......