| 6662 | } |
| 6663 | |
| 6664 | static void config_print_unknown_key(const char *key) { |
| 6665 | (void)fprintf(stderr, "error: unknown config key: %s\nKnown keys:", key ? key : ""); |
| 6666 | for (size_t i = 0; i < sizeof(CONFIG_KEYS) / sizeof(CONFIG_KEYS[0]); i++) { |
| 6667 | (void)fprintf(stderr, " %s", CONFIG_KEYS[i].key); |
| 6668 | } |
| 6669 | (void)fprintf(stderr, "\n"); |
| 6670 | } |
| 6671 | |
| 6672 | int cbm_cmd_config(int argc, char **argv) { |
| 6673 | /* NULL argv with a nonzero argc previously slipped past this guard (the |