format
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-05 03:55:09 +09:00
commit 36d7eb30cb
10 changed files with 246 additions and 115 deletions

View file

@ -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);