Skip to content

Commit

Permalink
[minor] *print help when a valid action isn't given
Browse files Browse the repository at this point in the history
  • Loading branch information
nlco committed May 10, 2011
1 parent f326d20 commit 828cd48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/forever
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function isSimpleAction () {
// Show help prompt if requested or if the
// incorrect usage options are supplied
//
if (argv.h || argv.help ||
if (argv.h || argv.help || !action ||
(argv._.length === 0 && !isSimpleAction())) {
sys.puts(help);
return;
Expand Down Expand Up @@ -182,4 +182,4 @@ if (action === 'set') {
options = options.options[0];
}

forever.cli.exec(action, file, options);
forever.cli.exec(action, file, options);

0 comments on commit 828cd48

Please sign in to comment.