summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
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 },
};