Answers for "get program arguments rust"

2

rust get command line arguments

use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();
    println!("{:?}", args);
}
Posted by: Guest on December-10-2020

Browse Popular Code Answers by Language