From 64d45f423711fb41aa5b8fbaae94d79838f54e69 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Thu, 10 Feb 2022 15:27:20 +0100 Subject: use getopt_long option definition instead of numeric value. --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 4da1b8e..84fd846 100644 --- a/src/main.c +++ b/src/main.c @@ -32,10 +32,10 @@ const char *root = "."; int max_redirect = 0; static struct option tip_repo_opts[] = { - { "max-clients", 1, 0, 'n' }, - { "redirect", 2, 0, 'r' }, - { "root", 1, 0, 't' }, - { "daemon", 0, 0, 'd' }, + { "max-clients", required_argument, 0, 'n' }, + { "redirect", optional_argument, 0, 'r' }, + { "root", required_argument, 0, 't' }, + { "daemon", no_argument, 0, 'd' }, { NULL }, }; -- cgit v1.2.3-18-g5258