MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / render_dynamic_command_help

Function render_dynamic_command_help

src/main.rs:183–199  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

181}
182
183fn render_dynamic_command_help(args: &[String]) -> bool {
184 let command_args = args.get(1..).unwrap_or_default();
185 let is_tool_command_help = matches!(
186 command_args,
187 [command, help] if command == "tool" && matches!(help.as_str(), "-h" | "--help")
188 );
189 if !is_tool_command_help {
190 return false;
191 }
192
193 let mut command = Cli::command();
194 if let Some(tool) = command.find_subcommand_mut("tool") {
195 let _ = tool.print_long_help();
196 println!();
197 }
198 true
199}
200
201async fn run(cli: Cli) -> tracedecay::errors::Result<()> {
202 let command = match cli.command {

Callers 1

async_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected