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

Function cli_snake_to_kebab

src/cli/cli.c:12424–12430  ·  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

12422
12423/* snake_case JSON key -> kebab-case flag name (for --help display). In-place. */
12424static void cli_snake_to_kebab(char *s) {
12425 for (; *s; s++) {
12426 if (*s == '_') {
12427 *s = '-';
12428 }
12429 }
12430}
12431
12432/* Heap-format a one-argument error message for *err_out. Caller frees. */
12433static char *cli_heap_msgf(const char *fmt, const char *arg) {

Callers 2

cbm_cli_build_args_jsonFunction · 0.85
cbm_cli_print_tool_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected