Navigation Menu

Skip to content

Commit

Permalink
Register the default usage by CommandLineInterface itself
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 6, 2012
1 parent 4b90120 commit 01e1555
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion bin/cs-describe-domain
Expand Up @@ -4,7 +4,6 @@ var CLI = require(__dirname + '/../lib/command-line').CommandLineInterface;
var commandLine = new CLI();

commandLine
.usage('[options]')
.option('-d, --domain-name <domain name>',
'The name of the domain that you are creating. Required.',
String)
Expand Down
1 change: 0 additions & 1 deletion bin/gcs
Expand Up @@ -5,7 +5,6 @@ var CLI = require(__dirname + '/../lib/command-line').CommandLineInterface;
var commandLine = new CLI();

commandLine
.usage('[options]')
.option('-p, --port <port>',
'specify port [7575]',
Number,
Expand Down
2 changes: 2 additions & 0 deletions lib/command-line.js
Expand Up @@ -36,6 +36,8 @@ CommandLineInterface.prototype = {

if (this.reservedUsage)
this.program.usage.apply(this.program, this.reservedUsage);
else
this.program.usage('[options]');

this.reservedOptions.forEach(function(optionArguments) {
this.program.option.apply(this.program, optionArguments);
Expand Down

0 comments on commit 01e1555

Please sign in to comment.