| 7698 | } |
| 7699 | |
| 7700 | static void config_print_unknown_key(const char *key) { |
| 7701 | (void)fprintf(stderr, "error: unknown config key: %s\nKnown keys:", key ? key : ""); |
| 7702 | for (size_t i = 0; i < sizeof(CONFIG_KEYS) / sizeof(CONFIG_KEYS[0]); i++) { |
| 7703 | (void)fprintf(stderr, " %s", CONFIG_KEYS[i].key); |
| 7704 | } |
| 7705 | (void)fprintf(stderr, "\n"); |
| 7706 | } |
| 7707 | |
| 7708 | int cbm_cmd_config(int argc, char **argv) { |
| 7709 | /* NULL argv with a nonzero argc previously slipped past this guard (the |