commit | 4fc09693d6f466ddf6b0721b20841d056759755a | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Mon Jun 19 16:37:19 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 20 14:43:28 2017 +0200 |
tree | 7511f40d3ccdfb0c5a4157eaf57c08f318aefc46 | |
parent | 45eff44e28a36be113a933ee27f16ff5e92775bb [diff] [blame] |
MINOR: warning on multiple -x Multiple use of the -x option is useless, emit a warning.
diff --git a/src/haproxy.c b/src/haproxy.c index 2fd387f..1eabb55 100644 --- a/src/haproxy.c +++ b/src/haproxy.c
@@ -1283,7 +1283,10 @@ Alert("Unix socket path expected with the -x flag\n\n"); usage(progname); } + if (old_unixsocket) + Warning("-x option already set, overwriting the value\n"); old_unixsocket = argv[1]; + argv++; argc--; }