Skip to content
New issue

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

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

Already on GitHub? # to your account

Help message for Argument could be improved #128

Closed
benasher44 opened this issue May 25, 2018 · 2 comments · Fixed by #129
Closed

Help message for Argument could be improved #128

benasher44 opened this issue May 25, 2018 · 2 comments · Fixed by #129

Comments

@benasher44
Copy link
Contributor

In realm/SwiftLint#1191, I'm adding an Argument. For an Argument initialized like this:

Argument(defaultValue: [""], usage: "list of paths to the files or directories to \(action)")

I get a help message that looks like this:

[[""]]
	list of paths to the files or directories to lint

It'd be nice if instead it looked more like this (to match arg interfaces in other cli tools):

[<paths…>]
	list of paths to the files or directories to lint

This may require the inclusion of a 3rd parameter to Argument called variableName.

@mdiep
Copy link
Member

mdiep commented May 26, 2018

Want to open a PR for this? 🙂

@benasher44
Copy link
Contributor Author

Done! I didn't think I'd have time to do this initially :)

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

Successfully merging a pull request may close this issue.

2 participants