From cb4f641884ae6104f44967949f9b52a9a72f7baf Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 4 Jan 2022 00:28:38 -0600 Subject: write first-pass main lua script --- src/options.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index c4eb8d4..d221828 100644 --- a/src/options.c +++ b/src/options.c @@ -13,11 +13,10 @@ static void print_usage(const char *progname) int parse_options(struct argent_options *opts, int argc, char **argv) { opts->log_level = 0; - opts->conf_filename = "argent.lua"; - opts->output_dir = "public"; + opts->conf_filename = "config.lua"; int opt; - while ((opt = getopt(argc, argv, "vc:o:")) != -1) { + while ((opt = getopt(argc, argv, "vc:")) != -1) { switch (opt) { case 'v': opts->log_level += 1; @@ -27,10 +26,6 @@ int parse_options(struct argent_options *opts, int argc, char **argv) opts->conf_filename = optarg; break; - case 'o': - opts->output_dir = optarg; - break; - default: print_usage(argv[0]); return 1; -- cgit v1.2.1