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

Function cli_snake_to_kebab

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

13929
13930/* snake_case JSON key -> kebab-case flag name (for --help display). In-place. */
13931static void cli_snake_to_kebab(char *s) {
13932 for (; *s; s++) {
13933 if (*s == '_') {
13934 *s = '-';
13935 }
13936 }
13937}
13938
13939/* Heap-format a one-argument error message for *err_out. Caller frees. */
13940static 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