0 votes
in Rust by
How do you get a command line argument in Rust?

1 Answer

0 votes
by

The easiest way to use a command line argument in Rust is to put an iterator over the input arguments. Users can access the command line arguments by using functions such as

std::env::args_os or std::env::args

...