diff options
author | sanine <sanine.not@pm.me> | 2022-01-04 00:28:38 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-01-04 00:28:38 -0600 |
commit | cb4f641884ae6104f44967949f9b52a9a72f7baf (patch) | |
tree | 4819c0cc48f18b87d119d9b4bb393ef2bf4fe290 /src/options.c | |
parent | 5830f684ba172664df43eee26636e99e5a228028 (diff) |
write first-pass main lua script
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 9 |
1 files changed, 2 insertions, 7 deletions
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; |