Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CLI tools - should help display by default?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Glenn Block  
View profile  
 More options Dec 31 2011, 4:23 pm
From: Glenn Block <glenn.bl...@gmail.com>
Date: Sat, 31 Dec 2011 13:23:28 -0800
Local: Sat, Dec 31 2011 4:23 pm
Subject: CLI tools - should help display by default?

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".

Thanks
Glenn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Landolt  
View profile  
 More options Dec 31 2011, 4:51 pm
From: Dean Landolt <d...@deanlandolt.com>
Date: Sat, 31 Dec 2011 16:51:20 -0500
Local: Sat, Dec 31 2011 4:51 pm
Subject: Re: [nodejs] CLI tools - should help display by default?

On Sat, Dec 31, 2011 at 4:23 PM, Glenn Block <glenn.bl...@gmail.com> wrote:
> 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".

What's "use --help for al ist of commands" if not usage info? Why not go a
step further, if possible, and preface this kind of message with the
obvious common cases, if there are any. It can't hurt.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glenn Block  
View profile  
 More options Dec 31 2011, 4:56 pm
From: Glenn Block <glenn.bl...@gmail.com>
Date: Sat, 31 Dec 2011 13:56:01 -0800
Local: Sat, Dec 31 2011 4:56 pm
Subject: Re: [nodejs] CLI tools - should help display by default?

I guess the real question I am asking is being that the command requires at
least some params, does it make sense to even have --help? Or should it
just print out the help for you and save you the command?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glenn Block  
View profile  
 More options Dec 31 2011, 4:56 pm
From: Glenn Block <glenn.bl...@gmail.com>
Date: Sat, 31 Dec 2011 13:56:35 -0800
Local: Sat, Dec 31 2011 4:56 pm
Subject: Re: [nodejs] CLI tools - should help display by default?

npm prints out the list of commands if you just type "npm"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tjholowaychuk  
View profile  
 More options Jan 1 2012, 3:53 am
From: tjholowaychuk <tjholoway...@gmail.com>
Date: Sun, 1 Jan 2012 00:53:03 -0800 (PST)
Local: Sun, Jan 1 2012 3:53 am
Subject: Re: CLI tools - should help display by default?
if there's nothing useful you can do with no args then definitely
treat it as --help IMHO, though often for example I would use it for
parsing from stdin, default path to CWD, etc, but it really depends on
the tool i guess

On Dec 31 2011, 1:56 pm, Glenn Block <glenn.bl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glenn Block  
View profile  
 More options Jan 1 2012, 4:23 am
From: Glenn Block <glenn.bl...@gmail.com>
Date: Sun, 1 Jan 2012 01:23:21 -0800
Local: Sun, Jan 1 2012 4:23 am
Subject: RE: [nodejs] Re: CLI tools - should help display by default?
Cool. In this case I think like npm there is not really a default
action.

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?
if there's nothing useful you can do with no args then definitely
treat it as --help IMHO, though often for example I would use it for
parsing from stdin, default path to CWD, etc, but it really depends on
the tool i guess

On Dec 31 2011, 1:56 pm, Glenn Block <glenn.bl...@gmail.com> wrote:

--
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pavan Kumar Sunkara  
View profile  
 More options Jan 1 2012, 7:44 am
From: Pavan Kumar Sunkara <pavan.sss1...@gmail.com>
Date: Sun, 1 Jan 2012 18:14:40 +0530
Local: Sun, Jan 1 2012 7:44 am
Subject: Re: [nodejs] Re: CLI tools - should help display by default?
Slightly off-topic, but a small spec to guide cli tools arguments

https://gist.github.com/1485856

PS: Tweet and blog about it if you think it's good.

Thanks
Pavan Kumar Sunkara

--
- Pavan Kumar Sunkara

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Gutierrez  
View profile  
 More options Jan 2 2012, 3:46 am
From: Alan Gutierrez <a...@prettyrobots.com>
Date: Mon, 02 Jan 2012 03:46:46 -0500
Local: Mon, Jan 2 2012 3:46 am
Subject: Re: [nodejs] Re: CLI tools - should help display by default?
On 1/1/12 7:44 AM, Pavan Kumar Sunkara wrote:

> Slightly off-topic, but a small spec to guide cli tools arguments

> https://gist.github.com/1485856

> PS: Tweet and blog about it if you think it's good.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pavan Kumar Sunkara  
View profile  
 More options Jan 2 2012, 11:32 pm
From: Pavan Kumar Sunkara <pavan.sss1...@gmail.com>
Date: Tue, 3 Jan 2012 10:02:23 +0530
Local: Mon, Jan 2 2012 11:32 pm
Subject: Re: [nodejs] Re: CLI tools - should help display by default?

> 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »