summaryrefslogtreecommitdiff
path: root/src/tools/ovpn
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-09-02 20:18:08 +0200
committerSander Vrijders <sander@ouroboros.rocks>2019-09-15 11:49:43 +0200
commita1b78cc9d107917e6a2afbe0523a945f9be9dd6d (patch)
treef573c355c3ef488bacdcc3df2db5d29ac87901b8 /src/tools/ovpn
parent344dbad87ae8026415df5a652d7910f35557a700 (diff)
downloadouroboros-a1b78cc9d107917e6a2afbe0523a945f9be9dd6d.tar.gz
ouroboros-a1b78cc9d107917e6a2afbe0523a945f9be9dd6d.zip
tools: Fix name option in ovpn
The --name option is not of optional_argument type. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/tools/ovpn')
-rw-r--r--src/tools/ovpn/ovpn.c2
1 files changed, 1 insertions, 1 deletions
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}