[rust-dev] line params

Corey Richardson corey at octayn.net
Sun Jan 12 09:00:29 PST 2014


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 <rexlen at 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 at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>


More information about the Rust-dev mailing list