Rust reference

clap
cheat sheet.

Arguments, subcommands, validation, output handling, shell completions, and tests for Rust command-line tools.

27 topics54 code examplesUpdated
How clap fits together
01Describe the inputsFields and attributes define what the user can type.
02Parse and validateClap converts command words into typed values.
03Do the workYour program handles files, services, and errors.
04Write the resultSend data to stdout and diagnostics to stderr.
Jump to a specific topic

Choose a chapter

5 chapters · 27 topics