gitout_main.c (520B)
1 #include "gitout.h" 2 3 #include <stdio.h> 4 #include <stdlib.h> 5 6 static void gitout_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 GitoutOptions* options = gitout_options_create(argc, argv); 14 if (options == NULL) { 15 gitout_usage(argv[0]); 16 exit(1); 17 } 18 gitout_init(options); 19 gitout_run(options); 20 gitout_shutdown(); 21 gitout_options_free(options); 22 return 0; 23 }