(daemon option group): New option --transcript.
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -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 | ||
... | @@ -481,6 +483,10 @@ mu_daemon_argp_parser (int key, char *arg, struct argp_state *state) | ... | @@ -481,6 +483,10 @@ mu_daemon_argp_parser (int key, char *arg, struct argp_state *state) |
481 | case 't': | 483 | case 't': |
482 | p->timeout = strtoul (arg, NULL, 10); | 484 | p->timeout = strtoul (arg, NULL, 10); |
483 | break; | 485 | break; |
486 | |||
487 | case 'x': | ||
488 | p->transcript = 1; | ||
489 | break; | ||
484 | 490 | ||
485 | default: | 491 | default: |
486 | return ARGP_ERR_UNKNOWN; | 492 | return ARGP_ERR_UNKNOWN; | ... | ... |
-
Please register or sign in to post a comment