Skip to content

Commit 2f557f5

Browse files
Lowpowercursoragent
authored andcommitted
style(cli): clang-format CBM_CLI_USAGE and help-text test
Signed-off-by: Lowpower <3133734+Lowpower@users.noreply.github.com>
1 parent aaa72fb commit 2f557f5

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎src/cli/cli.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ const char *cbm_cli_get_version(void);
2929

3030
/* Top-level `cli --help` text printed by run_cli() in src/main.c.
3131
* Documents tool-level --format without adding a session-wide flag (#2102). */
32-
#define CBM_CLI_USAGE \
32+
#define CBM_CLI_USAGE \
3333
"Usage: codebase-memory-mcp cli [--quiet] [--progress] [--verbose] [--json] <tool_name> " \
34-
"[json_args]\n" \
35-
" --quiet Show errors only; cannot combine with --progress or outer --verbose\n" \
36-
" --progress Show lifecycle progress even when stderr is redirected\n" \
37-
" --verbose Include informational logs (preserves CBM_LOG_LEVEL=debug)\n" \
38-
" --json Print the raw MCP result envelope\n" \
39-
" Tools that accept format support --format tree|json (default: tree).\n" \
34+
"[json_args]\n" \
35+
" --quiet Show errors only; cannot combine with --progress or outer --verbose\n" \
36+
" --progress Show lifecycle progress even when stderr is redirected\n" \
37+
" --verbose Include informational logs (preserves CBM_LOG_LEVEL=debug)\n" \
38+
" --json Print the raw MCP result envelope\n" \
39+
" Tools that accept format support --format tree|json (default: tree).\n" \
4040
" --format json prints payload JSON; outer --json prints the full MCP envelope.\n"
4141

4242
/* Convert `--flag value` / `--flag=value` / bare-boolean `--flag` arguments for

‎tests/test_cli.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15344,8 +15344,8 @@ TEST(cli_usage_points_to_tool_format_json_issue2102) {
1534415344
ASSERT_NOT_NULL(strstr(CBM_CLI_USAGE, "payload JSON"));
1534515345
ASSERT_NOT_NULL(strstr(CBM_CLI_USAGE, "full MCP envelope"));
1534615346
ASSERT_NOT_NULL(strstr(CBM_CLI_USAGE, "--json Print the raw MCP result envelope"));
15347-
ASSERT_NOT_NULL(strstr(CBM_CLI_USAGE,
15348-
"cli [--quiet] [--progress] [--verbose] [--json] <tool_name>"));
15347+
ASSERT_NOT_NULL(strstr(CBM_CLI_USAGE, "cli [--quiet] [--progress] [--verbose] [--json] "
15348+
"<tool_name>"));
1534915349
ASSERT_NULL(strstr(CBM_CLI_USAGE, "[--format"));
1535015350
ASSERT_NULL(strstr(CBM_CLI_USAGE, "CBM_CLI_FORMAT"));
1535115351
PASS();

0 commit comments

Comments
 (0)