Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Specify your arguments after --: cargo run --offline -- --my-argument 42 --offline is just an example of cargo's own argument. They are passed before --. --my-argument and 42 will be passed to...
Answer
#2: Post edited
Specify arguments after `--`:- ```bash
- cargo run --offline -- --my-argument 42
- ```
- `--offline` is just an example of cargo's own argument. They are passed before `--`.
- `--my-argument` and `42` will be passed to your program.
- Source: [The Cargo Book](https://doc.rust-lang.org/cargo/commands/cargo-run.html#description)
- Specify your arguments after `--`:
- ```bash
- cargo run --offline -- --my-argument 42
- ```
- `--offline` is just an example of cargo's own argument. They are passed before `--`.
- `--my-argument` and `42` will be passed to your program.
- Source: [The Cargo Book](https://doc.rust-lang.org/cargo/commands/cargo-run.html#description)
#1: Initial revision
Specify arguments after `--`: ```bash cargo run --offline -- --my-argument 42 ``` `--offline` is just an example of cargo's own argument. They are passed before `--`. `--my-argument` and `42` will be passed to your program. Source: [The Cargo Book](https://doc.rust-lang.org/cargo/commands/cargo-run.html#description)