File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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();
You can’t perform that action at this time.
0 commit comments