I am sure there's no one answer to this, but interested in the philosophy of folks here. I am working on a CLI tool that has required params. I am using commander for handling the commands/options etc which works great. The question I had is with regard to usage info. This tool always requires you to choose something, so my question is should I display usage automatically if no commands are provided, OR should I say "use --help for a list of commands".
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
--
Sent from my Windows Phone
From: tjholowaychuk
Sent: 1/1/2012 12:53 AM
To: nodejs
Subject: [nodejs] Re: CLI tools - should help display by default?
https://gist.github.com/1485856
PS: Tweet and blog about it if you think it's good.
Thanks
Pavan Kumar Sunkara
--
- Pavan Kumar Sunkara
Did you read through any past discussions on command line argument
conventions? Is there a bibliography?
http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
Seems like a good thing to do, to create a Tweetable gist of conventions
for people to pass around.
--
Alan Gutierrez
Yes, I read almost all past conventions on command line arguments
including the link you gave me before writing the gist.
I just expanded the existing conventions with my spec.
Thanks