From a1b78cc9d107917e6a2afbe0523a945f9be9dd6d Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 2 Sep 2019 20:18:08 +0200 Subject: tools: Fix name option in ovpn The --name option is not of optional_argument type. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/tools/ovpn/ovpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/ovpn') diff --git a/src/tools/ovpn/ovpn.c b/src/tools/ovpn/ovpn.c index 0f1ec3e3..029742a7 100644 --- a/src/tools/ovpn/ovpn.c +++ b/src/tools/ovpn/ovpn.c @@ -193,7 +193,7 @@ int main(int argc, static struct option long_options[] = {{"ip", required_argument, NULL, 'i'}, {"mask", required_argument, NULL, 'm'}, - {"name", optional_argument, NULL, 'n'}, + {"name", required_argument, NULL, 'n'}, {"crypt", no_argument, NULL, 'C'}, {"help", no_argument, NULL, 'h'}, {NULL, 0, NULL, 0} -- cgit v1.2.3