@@ -1463,43 +1463,17 @@ fn root_help_text() -> String {
14631463 " session Show all detected coding (agent) CLI usage grouped by session" ,
14641464 " blocks Show usage report grouped by session billing blocks" ,
14651465 " statusline Display compact status line for Claude Code hooks with hybrid time+file caching (Beta)" ,
1466- " claude daily Show usage report grouped by date" ,
1467- " claude monthly Show usage report grouped by month" ,
1468- " claude weekly Show usage report grouped by week" ,
1469- " claude session Show usage report grouped by conversation session" ,
1470- " claude blocks Show usage report grouped by session billing blocks" ,
1471- " claude statusline Display compact status line for Claude Code hooks with hybrid time+file caching (Beta)" ,
1472- " codex daily Show Codex token usage grouped by day" ,
1473- " codex monthly Show Codex token usage grouped by month" ,
1474- " codex session Show Codex token usage grouped by session" ,
1475- " opencode daily Show OpenCode token usage grouped by day" ,
1476- " opencode weekly Show OpenCode token usage grouped by week" ,
1477- " opencode monthly Show OpenCode token usage grouped by month" ,
1478- " opencode session Show OpenCode token usage grouped by session" ,
1479- " amp daily Show Amp token usage grouped by day" ,
1480- " amp monthly Show Amp token usage grouped by month" ,
1481- " amp session Show Amp token usage grouped by session" ,
1482- " hermes daily Show Hermes usage grouped by date" ,
1483- " hermes monthly Show Hermes usage grouped by month" ,
1484- " hermes session Show Hermes usage grouped by session" ,
1485- " pi daily Show pi-agent usage grouped by date" ,
1486- " pi monthly Show pi-agent usage grouped by month" ,
1487- " pi session Show pi-agent usage grouped by session" ,
1488- " goose daily Show Goose usage grouped by date" ,
1489- " goose monthly Show Goose usage grouped by month" ,
1490- " goose session Show Goose usage grouped by session" ,
1491- " kilo daily Show Kilo usage grouped by date" ,
1492- " kilo monthly Show Kilo usage grouped by month" ,
1493- " kilo session Show Kilo usage grouped by session" ,
1494- " copilot daily Show GitHub Copilot CLI usage grouped by date" ,
1495- " copilot monthly Show GitHub Copilot CLI usage grouped by month" ,
1496- " copilot session Show GitHub Copilot CLI usage grouped by session" ,
1497- " gemini daily Show Gemini CLI usage grouped by date" ,
1498- " gemini monthly Show Gemini CLI usage grouped by month" ,
1499- " gemini session Show Gemini CLI usage grouped by session" ,
1500- " openclaw daily Show OpenClaw usage grouped by date" ,
1501- " openclaw monthly Show OpenClaw usage grouped by month" ,
1502- " openclaw session Show OpenClaw usage grouped by session" ,
1466+ " claude Show Claude Code usage commands" ,
1467+ " codex Show Codex token usage commands" ,
1468+ " opencode Show OpenCode token usage commands" ,
1469+ " amp Show Amp token usage commands" ,
1470+ " hermes Show Hermes usage commands" ,
1471+ " pi Show pi-agent usage commands" ,
1472+ " goose Show Goose usage commands" ,
1473+ " kilo Show Kilo usage commands" ,
1474+ " copilot Show GitHub Copilot CLI usage commands" ,
1475+ " gemini Show Gemini CLI usage commands" ,
1476+ " openclaw Show OpenClaw usage commands" ,
15031477 "" ,
15041478 "For more info, run any command with the `--help` flag:" ,
15051479 " ccusage daily --help" ,
@@ -1508,43 +1482,17 @@ fn root_help_text() -> String {
15081482 " ccusage session --help" ,
15091483 " ccusage blocks --help" ,
15101484 " ccusage statusline --help" ,
1511- " ccusage claude daily --help" ,
1512- " ccusage claude monthly --help" ,
1513- " ccusage claude weekly --help" ,
1514- " ccusage claude session --help" ,
1515- " ccusage claude blocks --help" ,
1516- " ccusage claude statusline --help" ,
1517- " ccusage codex daily --help" ,
1518- " ccusage codex monthly --help" ,
1519- " ccusage codex session --help" ,
1520- " ccusage opencode daily --help" ,
1521- " ccusage opencode weekly --help" ,
1522- " ccusage opencode monthly --help" ,
1523- " ccusage opencode session --help" ,
1524- " ccusage amp daily --help" ,
1525- " ccusage amp monthly --help" ,
1526- " ccusage amp session --help" ,
1527- " ccusage hermes daily --help" ,
1528- " ccusage hermes monthly --help" ,
1529- " ccusage hermes session --help" ,
1530- " ccusage pi daily --help" ,
1531- " ccusage pi monthly --help" ,
1532- " ccusage pi session --help" ,
1533- " ccusage goose daily --help" ,
1534- " ccusage goose monthly --help" ,
1535- " ccusage goose session --help" ,
1536- " ccusage kilo daily --help" ,
1537- " ccusage kilo monthly --help" ,
1538- " ccusage kilo session --help" ,
1539- " ccusage copilot daily --help" ,
1540- " ccusage copilot monthly --help" ,
1541- " ccusage copilot session --help" ,
1542- " ccusage gemini daily --help" ,
1543- " ccusage gemini monthly --help" ,
1544- " ccusage gemini session --help" ,
1545- " ccusage openclaw daily --help" ,
1546- " ccusage openclaw monthly --help" ,
1547- " ccusage openclaw session --help" ,
1485+ " ccusage claude --help" ,
1486+ " ccusage codex --help" ,
1487+ " ccusage opencode --help" ,
1488+ " ccusage amp --help" ,
1489+ " ccusage hermes --help" ,
1490+ " ccusage pi --help" ,
1491+ " ccusage goose --help" ,
1492+ " ccusage kilo --help" ,
1493+ " ccusage copilot --help" ,
1494+ " ccusage gemini --help" ,
1495+ " ccusage openclaw --help" ,
15481496 "" ,
15491497 ]
15501498 . map ( str:: to_string)
@@ -1986,25 +1934,27 @@ mod tests {
19861934 }
19871935
19881936 #[ test]
1989- fn help_lists_agent_namespace_commands ( ) {
1937+ fn root_help_lists_agent_namespaces_without_nested_commands ( ) {
19901938 let help = help_text ( ) ;
1991- assert ! ( help. contains( "\n claude daily" ) ) ;
1992- assert ! ( help. contains( "\n codex daily" ) ) ;
1993- assert ! ( help. contains( "\n opencode daily" ) ) ;
1994- assert ! ( help. contains( "\n amp daily" ) ) ;
1995- assert ! ( help. contains( "\n pi daily" ) ) ;
1996- assert ! ( help. contains( "\n copilot daily" ) ) ;
1997- assert ! ( help. contains( "\n gemini daily" ) ) ;
1998- assert ! ( help. contains( "\n openclaw daily" ) ) ;
1939+ let agents = [
1940+ "claude" , "codex" , "opencode" , "amp" , "hermes" , "pi" , "goose" , "kilo" , "copilot" ,
1941+ "gemini" , "openclaw" ,
1942+ ] ;
1943+
1944+ for agent in agents {
1945+ assert ! ( help. contains( & format!( "\n {agent} " ) ) ) ;
1946+ assert ! ( !help. contains( & format!( "\n {agent} daily" ) ) ) ;
1947+ }
19991948 }
20001949
20011950 #[ test]
20021951 fn root_help_lists_command_descriptions_and_follow_up_help_commands ( ) {
20031952 let help = help_text ( ) ;
20041953
2005- assert ! ( help. contains( "codex daily Show Codex token usage grouped by day " ) ) ;
1954+ assert ! ( help. contains( "codex Show Codex token usage commands " ) ) ;
20061955 assert ! ( help. contains( "For more info, run any command with the `--help` flag:" ) ) ;
2007- assert ! ( help. contains( "ccusage codex daily --help" ) ) ;
1956+ assert ! ( help. contains( "ccusage codex --help" ) ) ;
1957+ assert ! ( !help. contains( "ccusage codex daily --help" ) ) ;
20081958 }
20091959
20101960 #[ test]
0 commit comments