Skip to content

Instantly share code, notes, and snippets.

@fanbyprinciple
Created January 23, 2022 06:41
Show Gist options
  • Save fanbyprinciple/80bac31f27c0735315bacf8a0c5e23d8 to your computer and use it in GitHub Desktop.
Save fanbyprinciple/80bac31f27c0735315bacf8a0c5e23d8 to your computer and use it in GitHub Desktop.
madlib generator
fn main() {
let color = std::env::args().nth(1).expect("Please provide a color");
let animal = std::env::args().nth(2).expect("Please provide an animal");
let friend = std::env::args().nth(3).expect("Please provide a friend's name");
println!("Roses can be {}, {} could be blue, {} is open minded and so should be you.", color, animal, friend);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment