-
Notifications
You must be signed in to change notification settings - Fork 56
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
better cli help #722
Comments
@GuidoS I agree with you completely about the poor --help output. We've been meaning to switch to |
Since October in fact! #356 |
I would like to convince you that yargs is a better choice:
nomnom .option('timeout', {
abbr: 't',
metavar: 'TIMEOUT', // not sure what this is for?
help: 'Set timeout in seconds for scanning for networked tessels',
default: 5
}) commander .option('-t, --timeout', 'Set timeout in seconds for scanning for networked tessels')
// no default options yargs .option('timeout', {
alias: 't',
describe:'Set timeout in seconds for scanning for networked tessels',
default: 5
}
|
Sounds reasonable to me! 👍 |
To be clear, if i spend the time making this update, and it works, you can On Sun, May 1, 2016, 7:19 AM Jon [email protected] wrote:
|
Yeah, I am okay with it but I don't have much experience with |
I believe we were looking to switch to |
I've only ever used meow, but if Sindre recommends |
Re: metavar... https://github.com/harthur/nomnom#metavar |
@guido since nobody has strong opinions, let's move forward with 'yargs'. |
OK, I will get going on this next week, I'm slammed right now... |
I am new to contributing code with these community tools. I have setup a branch on my personal fork and am working there: Once I have the functionality fully functional I will do a pull request. Is this the correct way to do this? Is there a CONTRIBUTE.md somewhere? |
Yes, it is just in a different repo: https://github.com/tessel/project/blob/master/CONTRIBUTING.md And then you will also need to sign the CLA. |
I have signed it ;) On Fri, May 13, 2016, 8:05 AM Neil Kistner [email protected] wrote:
|
@GuidoS were you able to make any progress on this? |
@johnnyman727 @GuidoS I'm a little biased, so not going to make too noisy of a pitch for yargs. But, I'm here to help if you need me. |
This has been back burnered for me. I will make some time this weekend to get the ball rolling and would be happy to get support from others. |
looks like this was deprecated, so I will happily close this. |
Could the bin possibly use yargs to document commands and options? I would be happy to help make this happen, just want to make sure that this type of update would be accepted as a pull request. My thought is that yargs does a really nice job of self documenting commands and options and the current '-h' help option is pretty lacking.
The text was updated successfully, but these errors were encountered: