+ while (1) {
+ int c;
+ static const struct option long_options[] = {
+ {"check", no_argument, NULL, 'c'},
+ {"reset", no_argument, NULL, 'z'},
+ {NULL, 0, NULL, 0}
+ };
+
+ c = getopt_long(argc, argv, "cz", long_options, NULL);
+ if (c < 0)
+ break;
+