Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust get command line arguments

use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();
    println!("{:?}", args);
}
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #rust #command #line #arguments
ADD COMMENT
Topic
Name
9+1 =