gitout_index_main.c (517B)
1 #include "gitout_index.h" 2 3 #include <stdio.h> 4 #include <stdlib.h> 5 6 static void gitout_index_usage(const char* program_name) { 7 fprintf(stderr, "usage: %s [repodir...]\n", program_name); 8 } 9 10 int main(int argc, const char* argv[]) { 11 GitoutIndexOptions* options = gitout_index_options_create(argc, argv); 12 if (options == NULL) { 13 gitout_index_usage(argv[0]); 14 exit(1); 15 } 16 gitout_index_init(options); 17 gitout_index_run(options); 18 gitout_index_shutdown(); 19 gitout_index_options_free(options); 20 return 0; 21 }