saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 48eaa7dac60dfd491fdb1e915f59741cf1a19dd0
parent 0a5c6534a04a5cdac0a8e3d7f294e1fd7e281f6f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  5 Apr 2020 12:46:25 +0200

fix command parsing for options

Diffstat:
Msaait.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/saait.c b/saait.c @@ -421,9 +421,9 @@ main(int argc, char *argv[]) if (argi + 1 >= argc) usage(argv[0]); switch (argv[argi][1]) { - case 'c': configfile = argv[argi + 1]; break; - case 'o': outputdir = argv[argi + 1]; break; - case 't': templatedir = argv[argi + 1]; break; + case 'c': configfile = argv[++argi]; break; + case 'o': outputdir = argv[++argi]; break; + case 't': templatedir = argv[++argi]; break; default: usage(argv[0]); break; } }