What we should use in crate clap to parse the cmd line?

now i need to make a cmd line parse tool,so i want to use clap crate.But when i check the docs of clap, i find that the APP struct or trait has been deleted. On the same time, code written by AI or written by people always use the APP. What struct or trait should i use now?

If you open the documentation of clap, after some quick links and explaining what the crate is for, the very next section is titled "Example". It then links to a tutorial and reference for the derivation macro. Further down are multiple entire sections of documentation, including a cookbook full of examples.

Your first stop should always be the documentation. Always.

8 Likes

ok, I will read docs.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.