Skip to content

Commit

Permalink
Replaced optimist with yargs (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratstail91 authored Aug 7, 2020
1 parent a36330a commit 877d93a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ var getOptions = cli.getOptions = function (file) {
options.args = process.argv.splice(process.argv.indexOf(file) + 1);

//
// Now we have to force optimist to reparse command line options because
// Now we have to force reparsing of command line options because
// we've removed some before.
//
app.config.stores.argv.store = {};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"nconf": "^0.10.0",
"nssocket": "^0.6.0",
"object-assign": "^4.1.1",
"optimist": "^0.6.1",
"prettyjson": "^1.2.1",
"shush": "^1.0.0",
"utile": "~0.3.0",
"winston": "~0.8.1"
"winston": "~0.8.1",
"yargs": "^3.32.0"
},
"devDependencies": {
"broadway": "~0.3.6",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var util = require('util'),
http = require('http'),
argv = require('optimist').argv;
argv = require('yargs').argv;

var port = argv.p || argv.port || 8080;

Expand Down

0 comments on commit 877d93a

Please sign in to comment.