MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cli_snake_to_kebab

Function cli_snake_to_kebab

src/cli/cli.c:4505–4511  ·  view source on GitHub ↗

snake_case JSON key -> kebab-case flag name (for --help display). In-place. */

Source from the content-addressed store, hash-verified

4503
4504/* snake_case JSON key -> kebab-case flag name (for --help display). In-place. */
4505static void cli_snake_to_kebab(char *s) {
4506 for (; *s; s++) {
4507 if (*s == '_') {
4508 *s = '-';
4509 }
4510 }
4511}
4512
4513/* Heap-format a one-argument error message for *err_out. Caller frees. */
4514static char *cli_heap_msgf(const char *fmt, const char *arg) {

Callers 1

cbm_cli_print_tool_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected