Random stuff, testing things, and so on.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
349 B

use std::env;
use std::path::Path;
fn main() {
let execution_name = env::args().nth(0).unwrap_or("???".to_string());
let parser = Path::new(&execution_name)
.file_name()
.map(|x| x.to_str())
.flatten()
.unwrap_or("???");
println!("I am {}", execution_name);
println!("And the name is {}", parser);
}