10 void parse_flags(int argc, char * const argv[])
12 static const option long_options[] = {
13 { "num-cards", required_argument, 0, 'c' },
18 int c = getopt_long(argc, argv, "c:", long_options, &option_index);
25 global_flags.num_cards = atoi(optarg);
28 fprintf(stderr, "Unknown option '%s'\n", argv[option_index]);