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

Support named positional arguments #6

Open
electrum opened this issue Oct 22, 2012 · 2 comments
Open

Support named positional arguments #6

electrum opened this issue Oct 22, 2012 · 2 comments

Comments

@electrum
Copy link
Member

There should be a way to specify that exactly two arguments are required:

git remote add <name> <url>

Currently, this must be done as List<String>, which requires the user code to do the min/max checking, and doesn't allowing mixed types, such as String and URI.

@gaul
Copy link

gaul commented Oct 9, 2013

Any suggestions on how to implement this?

@dain
Copy link
Member

dain commented Oct 9, 2013

we could add something like:

  @Arguments
  void setArguments(String name, URI uri) {
    ...
  }

We can extract the names using paranamer (or the Java 8 apis).

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

No branches or pull requests

3 participants