| 7498 | } |
| 7499 | |
| 7500 | static void config_print_unknown_key(const char *key) { |
| 7501 | (void)fprintf(stderr, "error: unknown config key: %s\nKnown keys:", key ? key : ""); |
| 7502 | for (size_t i = 0; i < sizeof(CONFIG_KEYS) / sizeof(CONFIG_KEYS[0]); i++) { |
| 7503 | (void)fprintf(stderr, " %s", CONFIG_KEYS[i].key); |
| 7504 | } |
| 7505 | (void)fprintf(stderr, "\n"); |
| 7506 | } |
| 7507 | |
| 7508 | int cbm_cmd_config(int argc, char **argv) { |
| 7509 | /* NULL argv with a nonzero argc previously slipped past this guard (the |