Command-line arguments are a common way to parameterize execution of programs. For example, cargo run -- arg1 arg2 uses arg1 and arg2 as arguments to the Rust program.
To experiment with command-line arguments it’s best to build a binary with cargo build first.
Next we’ll look at more advanced command-line processing with flags.