| 6546 | } |
| 6547 | |
| 6548 | static void config_print_unknown_key(const char *key) { |
| 6549 | (void)fprintf(stderr, "error: unknown config key: %s\nKnown keys:", key ? key : ""); |
| 6550 | for (size_t i = 0; i < sizeof(CONFIG_KEYS) / sizeof(CONFIG_KEYS[0]); i++) { |
| 6551 | (void)fprintf(stderr, " %s", CONFIG_KEYS[i].key); |
| 6552 | } |
| 6553 | (void)fprintf(stderr, "\n"); |
| 6554 | } |
| 6555 | |
| 6556 | int cbm_cmd_config(int argc, char **argv) { |
| 6557 | /* NULL argv with a nonzero argc previously slipped past this guard (the |