Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

optimist no longer maintained, replace with its successor yargs #435

Merged
merged 1 commit into from
Mar 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/carto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var path = require('path'),

var existsSync = require('fs').existsSync || require('path').existsSync

var optimist = require('optimist')
var yargs = require('yargs')
.usage("Usage: $0 <source MML file>")
.options('h', {alias:'help', describe:'Display this help message'})
.options('v', {alias:'version', boolean:true, describe:'Display version information'})
Expand All @@ -18,7 +18,7 @@ var optimist = require('optimist')
.options('n', {alias:'nosymlink', boolean:true, describe:'Use absolute paths instead of symlinking files'})
.options('ppi', {describe:'Pixels per inch used to convert m, mm, cm, in, pt, pc to pixels', default:90.714});

var options = optimist.argv;
var options = yargs.argv;

if (options.help) {
optimist.showHelp();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"js-yaml": "^3.4.6",
"lodash": "^4.5.1",
"mapnik-reference": "~8.5.3",
"optimist": "~0.6.0"
"yargs": "^4.2.0"
},
"devDependencies": {
"coveralls": "~2.11.8",
Expand Down