private.h 475 B

12345678910111213141516171819202122232425
  1. #include <faux/list.h>
  2. #ifndef VERSION
  3. #define VERSION "1.0.0"
  4. #endif
  5. /** @brief Command line and config file options
  6. */
  7. struct options {
  8. bool_t verbose;
  9. char *unix_socket_path;
  10. bool_t stop_on_error;
  11. bool_t dry_run;
  12. bool_t quiet;
  13. faux_list_t *commands;
  14. faux_list_t *files;
  15. };
  16. // Options
  17. void help(int status, const char *argv0);
  18. struct options *opts_init(void);
  19. void opts_free(struct options *opts);
  20. int opts_parse(int argc, char *argv[], struct options *opts);