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

Document variable amount of arguments #87

Closed
Jelle-S opened this issue Mar 2, 2017 · 2 comments
Closed

Document variable amount of arguments #87

Jelle-S opened this issue Mar 2, 2017 · 2 comments

Comments

@Jelle-S
Copy link

Jelle-S commented Mar 2, 2017

This was briefly discussed on Twitter:
https://twitter.com/sebreghtsjelle/status/835124401616076801

/**
 * Documentation for mynamespace:my-command
 * 
 * @param array $arguments
 *   Variable amount of arguments. Last 2 arguments are SSH username and password.
 *   All remaining (first x) arguments are servers to execute a command on.
 */
public function mynamespaceMyCommand(array $arguments) {
}

How would we document individual arguments for this command?
Might be related to #69.

@greg-1-anderson
Copy link
Member

This specific command would be easier to document if the ssh username and password were the first arguments rather than the last.

@greg-1-anderson
Copy link
Member

Nothing to do here, as far as I can tell.

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

2 participants