diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-10 15:27:20 +0100 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-10 15:27:20 +0100 |
commit | 64d45f423711fb41aa5b8fbaae94d79838f54e69 (patch) | |
tree | 124a00d0ad03fcbef79bf996eb9ec4bb88cca587 | |
parent | 2f834d6628e715a20af9880bee700d69efd5e38c (diff) |
use getopt_long option definition
instead of numeric value.
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 }, }; |