gout_index_main.c (499B)
1 #include "gout_index.h" 2 3 #include <stdio.h> 4 #include <stdlib.h> 5 6 static void gout_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 GoutIndexOptions* options = gout_index_options_create(argc, argv); 12 if (options == NULL) { 13 gout_index_usage(argv[0]); 14 exit(1); 15 } 16 gout_index_init(options); 17 gout_index_run(options); 18 gout_index_shutdown(); 19 gout_index_options_free(options); 20 return 0; 21 }