This commit is contained in:
parent
de036d46aa
commit
36d7eb30cb
10 changed files with 246 additions and 115 deletions
12
src/main.c
12
src/main.c
|
|
@ -7,13 +7,16 @@ int main(int argc, char** argv) {
|
|||
char** target_argv = malloc(sizeof(*target_argv));
|
||||
target_argv[0] = NULL;
|
||||
|
||||
printf("Taiga, static website generator - run `%s help' for help\n\n", argv[0]);
|
||||
printf("Taiga, static website generator - run `%s help' for help\n\n",
|
||||
argv[0]);
|
||||
|
||||
for(i = 1; i < argc; i++) {
|
||||
if(argv[i][0] == '-') {
|
||||
if(action != NULL) continue;
|
||||
if(action != NULL)
|
||||
continue;
|
||||
} else {
|
||||
if(action != NULL) continue;
|
||||
if(action != NULL)
|
||||
continue;
|
||||
action = argv[i];
|
||||
|
||||
free(target_argv);
|
||||
|
|
@ -22,7 +25,8 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if(action == NULL) action = "site";
|
||||
if(action == NULL)
|
||||
action = "site";
|
||||
|
||||
if(strcmp(action, "site") == 0) {
|
||||
return action_site(target_argc, target_argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue