Skip to content

Instantly share code, notes, and snippets.

@brendanzab
Forked from andydude/echo.rs
Last active December 17, 2015 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brendanzab/5682965 to your computer and use it in GitHub Desktop.
Save brendanzab/5682965 to your computer and use it in GitHub Desktop.
use std::{os,str};
fn main() {
let args = os::args();
match args.tail() {
[~"-n",..strs] => print(str::connect(strs, " ")),
strs => println(str::connect(strs, " ")),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment