I don't know what print_args is, but there's a getopt-alike in extra::getopts

On Sun, Jan 12, 2014 at 11:48 AM, Renato Lenzi <rex...@gmail.com> wrote:
> 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.
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to