Skip to content

Commit

Permalink
[fix] Revert bad options commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed May 4, 2012
1 parent 5d21f97 commit 8af6803
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,7 @@ var help = [

var app = flatiron.app;

var argvOptions = cli.argvOptions = {
'command': {alias: 'c'},
'errFile': {alias: 'e'},
'logFile': {alias: 'l'},
'append': {alias: 'a', boolean: true},
'max': {alias: 'm'},
'outFile': {alias: 'o'},
'path': {alias: 'p'},
'help': {alias: 'h'},
'silent': {alias: 's', boolean: true},
'verbose': {alias: 'v', boolean: true},
'watch': {alias: 'w', boolean: true},
'debug': {alias: 'd', boolean: true},
'plain': {boolean: true}
};

app.use(flatiron.plugins.cli, {
argv: argvOptions,
usage: help
});

Expand All @@ -107,6 +90,24 @@ var actions = [
'cleanlogs'
];

var argvOptions = cli.argvOptions = {
'command': {alias: 'c'},
'errFile': {alias: 'e'},
'logFile': {alias: 'l'},
'append': {alias: 'a', boolean: true},
'max': {alias: 'm'},
'outFile': {alias: 'o'},
'path': {alias: 'p'},
'help': {alias: 'h'},
'silent': {alias: 's', boolean: true},
'verbose': {alias: 'v', boolean: true},
'watch': {alias: 'w', boolean: true},
'debug': {alias: 'd', boolean: true},
'plain': {boolean: true}
};

app.config.argv().env();

var reserved = ['root', 'pidPath'];

//
Expand Down Expand Up @@ -184,8 +185,7 @@ var getOptions = cli.getOptions = function (file) {
// we've removed some before.
//
app.config.stores.argv.store = {};

app.config.use('argv', { argv: argvOptions });
app.config.use('argv', argvOptions);

[
'pidFile', 'logFile', 'errFile', 'watch', 'minUptime', 'append',
Expand Down

0 comments on commit 8af6803

Please sign in to comment.