#include "standard.h" #include "../config.h" #include #include #include int parse_standard_options (void (*usage) (int), int argc, char **argv) { for (int i = 1; i < argc; ++i) { if (strcmp (argv[i], "--help") == 0) { usage (0); exit (0); } else if (strcmp (argv[i], "--version") == 0) { printf ("%s %s %d\nCopyright (C) %d %s.\n%s\nThis is free software: " "you are free to change and redistribute it.\nThere is NO " "WARRNTY, to the extent permitted by law.\n", PROGRAM, VERSION, COMMIT, YEAR, AUTHORS, LICENSE_LINE); exit (0); } } return 1; }