A tool for adding anime to your anidb list.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
510B

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <signal.h>
  4. #include "config.h"
  5. #include "error.h"
  6. #include "uio.h"
  7. #include "cmd.h"
  8. int main(int argc, char **argv)
  9. {
  10. int exit_code = EXIT_SUCCESS;
  11. enum error err = config_parse(argc, argv);
  12. if (err == ERR_OPT_EXIT)
  13. return EXIT_SUCCESS;
  14. else if (err != NOERR)
  15. return EXIT_FAILURE;
  16. //config_dump();
  17. err = cmd_main();
  18. if (err != NOERR)
  19. exit_code = EXIT_FAILURE;
  20. config_free();
  21. return exit_code;
  22. }