tool: add --unix-socket option

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Peter Wu 2014-11-27 23:59:26 +01:00 committed by Daniel Stenberg
parent 970c22f970
commit c8644d1f63
5 changed files with 11 additions and 0 deletions

View file

@ -176,6 +176,7 @@ static const struct LongShort aliases[]= {
{"$J", "metalink", FALSE},
{"$K", "sasl-ir", FALSE},
{"$L", "test-event", FALSE},
{"$M", "unix-socket", TRUE},
{"0", "http1.0", FALSE},
{"01", "http1.1", FALSE},
{"02", "http2", FALSE},
@ -976,6 +977,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
warnf(config, "--test-event is ignored unless a debug build!\n");
#endif
break;
case 'M': /* --unix-socket */
GetStr(&config->unix_socket_path, nextarg);
break;
}
break;
case '#': /* --progress-bar */