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