gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

gout_main.c (502B)


      1 #include "gout.h"
      2 
      3 #include <stdio.h>
      4 #include <stdlib.h>
      5 
      6 static void gout_usage(const char* program_name) {
      7   fprintf(stderr,
      8           "usage: %s [-c cachefile | -l commits] [-u baseurl] repodir\n",
      9           program_name);
     10 }
     11 
     12 int main(int argc, const char* argv[]) {
     13   GoutOptions* options = gout_options_create(argc, argv);
     14   if (options == NULL) {
     15     gout_usage(argv[0]);
     16     exit(1);
     17   }
     18   gout_init(options);
     19   gout_run(options);
     20   gout_shutdown();
     21   gout_options_free(options);
     22   return 0;
     23 }