+ struct option options[] = {
+ { "accumulate", no_argument, 0, 'a' },
+ { 0, 0, 0, 0}
+ };
+
+ int opt;
+ do {
+ opt = getopt_long (argc, argv, "", options, NULL);
+
+ switch (opt) {
+ case 'a':
+ accumulate = 1;
+ break;
+ case '?':
+ return 1;
+ break;
+ }
+
+ } while (opt != -1);