Introduction
Introduction Statistics Contact Development Disclaimer Help
fix command parsing for options - saait - the most boring static page generator
git clone git://git.codemadness.org/saait
Log
Files
Refs
README
LICENSE
---
commit 48eaa7dac60dfd491fdb1e915f59741cf1a19dd0
parent 0a5c6534a04a5cdac0a8e3d7f294e1fd7e281f6f
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 5 Apr 2020 12:46:25 +0200
fix command parsing for options
Diffstat:
M saait.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;
}
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.