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

Function cli_snake_to_kebab

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

11676
11677/* snake_case JSON key -> kebab-case flag name (for --help display). In-place. */
11678static void cli_snake_to_kebab(char *s) {
11679 for (; *s; s++) {
11680 if (*s == '_') {
11681 *s = '-';
11682 }
11683 }
11684}
11685
11686/* Heap-format a one-argument error message for *err_out. Caller frees. */
11687static 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