Anonymous user
Interactive programming (repl): Difference between revisions
→{{header|Rust}}
Line 1,403:
=={{header|Rust}}==
This method use the crate clap: '''clap''' is used to parse and validate the string of command line arguments provided by the user at runtime. You provide the list of valid possibilities, and clap handles the rest. This means you focus on your applications functionality, and less on the parsing and validating of arguments.
<lang yaml>
name: myapp
Line 1,424:
index: 3
</lang>
<lang yaml>
[dependencies]
clap = { version = "3.0.0-beta.2", features = ["yaml"] }
</lang>
<lang rust>
#[macro_use]
|