diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-11-27 23:59:26 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-12-04 02:52:19 +0100 |
commit | c8644d1f638fdd8f4bf34fe64e910ba704fb26c0 (patch) | |
tree | 907f2f618906215abfea7259dac8b35db462808a /src/tool_getparam.c | |
parent | 970c22f970f0172e6a4c98ccc3176c740ddaa1c6 (diff) | |
download | curl-c8644d1f638fdd8f4bf34fe64e910ba704fb26c0.tar.gz |
tool: add --unix-socket option
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index bf025e4e8..3932ccbf5 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -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 */ |