[rust-dev] line params

Renato Lenzi rexlen at gmail.com
Sun Jan 12 08:48:42 PST 2014


If i want to access line command params i used code like this:

fn main() {
  let args: ~[~str] = ::std::os::args();
  println(args[0]);
}


Is this the best way to play with such params or the best is using
print_args? i've found no examples using print_args....

thanks, regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140112/25d7a9cf/attachment.html>


More information about the Rust-dev mailing list