Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from adamclerk/master

Allows to subcommands to execute without argument.
  • Loading branch information...
commit 7f3dc83aae1eb9951673cc00339c4dbf40f930b8 2 parents e20ae37 + 69eeb58
@tricknik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  operetta.js
View
2  operetta.js
@@ -71,7 +71,7 @@ util.inherits(Operetta, events.EventEmitter);
Operetta.prototype.start = function(callback) {
var operetta = this;
- if (operetta.parent && operetta.args.length == 0) operetta.usage();
+ if (operetta.parent && operetta.args.length == 0 && operetta.noop == false) operetta.usage();
else {
if (!operetta.opts["-h"]) {
operetta.options(['-h','--help'], "Show Help", function() {
Please sign in to comment.
Something went wrong with that request. Please try again.