Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topics for the "args" chapter #106

Closed
2 of 3 tasks
japaric opened this issue Jun 17, 2014 · 9 comments
Closed
2 of 3 tasks

Topics for the "args" chapter #106

japaric opened this issue Jun 17, 2014 · 9 comments

Comments

@japaric
Copy link
Member

japaric commented Jun 17, 2014

  • ~~~os::args~~~: return type, first arg is the program name, number of arguments
  • ~~~matching on os::args~~~
  • getopts

@vks is working on this

@steveklabnik
Copy link
Member

I'd be happy to mentor anyone who wants to work on this!

@vks
Copy link
Contributor

vks commented Sep 16, 2017

I think getopts was moved out of the standard library. Maybe hint at clap and friends instead?

@steveklabnik
Copy link
Member

Or, maybe referring to the Cookbook for "real" argument parsing.

@maccoda
Copy link
Contributor

maccoda commented Oct 5, 2017

In the initial issue comment, does os::args now refer to the ArgsOs iterator?

@steveklabnik
Copy link
Member

Yup! https://doc.rust-lang.org/stable/std/env/fn.args.html and its return type

@steveklabnik
Copy link
Member

I'm not sure what the second checkbox is, so I just checked it off.

@maccoda
Copy link
Contributor

maccoda commented Oct 11, 2017

@steveklabnik awesome, thanks will work on the next PR! 😄

@maccoda
Copy link
Contributor

maccoda commented Oct 13, 2017

@steveklabnik Having a look at the current args page it looks like the issue has already been addressed... It describes how to get the first argument and the number of arguments. Is there something else we should be adding?

@steveklabnik
Copy link
Member

You're totally right, looks great to me. Thanks for closing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants