12345678910111213141516171819202122232425 |
- #include <faux/list.h>
- #ifndef VERSION
- #define VERSION "1.0.0"
- #endif
- /** @brief Command line and config file options
- */
- struct options {
- bool_t verbose;
- char *unix_socket_path;
- bool_t stop_on_error;
- bool_t dry_run;
- bool_t quiet;
- faux_list_t *commands;
- faux_list_t *files;
- };
- // Options
- void help(int status, const char *argv0);
- struct options *opts_init(void);
- void opts_free(struct options *opts);
- int opts_parse(int argc, char *argv[], struct options *opts);
|