| 6602 | } |
| 6603 | |
| 6604 | static void config_print_unknown_key(const char *key) { |
| 6605 | (void)fprintf(stderr, "error: unknown config key: %s\nKnown keys:", key ? key : ""); |
| 6606 | for (size_t i = 0; i < sizeof(CONFIG_KEYS) / sizeof(CONFIG_KEYS[0]); i++) { |
| 6607 | (void)fprintf(stderr, " %s", CONFIG_KEYS[i].key); |
| 6608 | } |
| 6609 | (void)fprintf(stderr, "\n"); |
| 6610 | } |
| 6611 | |
| 6612 | int cbm_cmd_config(int argc, char **argv) { |
| 6613 | /* NULL argv with a nonzero argc previously slipped past this guard (the |