Last active
November 11, 2016 04:05
-
-
Save asdfsx/6d9504d59d56392327fb557192662d11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::env; | |
fn main() { | |
let mut tomlfile = ""; | |
for argument in env::args() { | |
let tmp = &*argument; | |
if tmp.contains("toml=") { | |
println!("{}", &tmp[5 .. tmp.len()]); | |
tomlfile = &tmp[5 .. tmp.len()]; | |
} | |
} | |
println!("{}", tomlfile); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new code: