mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Merge pull request #6502 from atom/mq-replace-optimist
Replace optimist with yargs
This commit is contained in:
commit
847796d25d
@ -47,7 +47,6 @@
|
||||
"normalize-package-data": "^2.0.0",
|
||||
"nslog": "^2.0.0",
|
||||
"oniguruma": "^4.1",
|
||||
"optimist": "0.4.0",
|
||||
"pathwatcher": "^4.4",
|
||||
"property-accessors": "^1.1.3",
|
||||
"q": "^1.1.2",
|
||||
@ -68,7 +67,8 @@
|
||||
"text-buffer": "6.0.1",
|
||||
"theorist": "^1.0.2",
|
||||
"typescript-simple": "1.0.0",
|
||||
"underscore-plus": "^1.6.6"
|
||||
"underscore-plus": "^1.6.6",
|
||||
"yargs": "^3.7.2"
|
||||
},
|
||||
"packageDependencies": {
|
||||
"atom-dark-syntax": "0.27.0",
|
||||
|
@ -4,7 +4,7 @@ crashReporter = require 'crash-reporter'
|
||||
app = require 'app'
|
||||
fs = require 'fs-plus'
|
||||
path = require 'path'
|
||||
optimist = require 'optimist'
|
||||
yargs = require 'yargs'
|
||||
nslog = require 'nslog'
|
||||
|
||||
console.log = nslog
|
||||
@ -85,7 +85,7 @@ setupCoffeeCache = ->
|
||||
|
||||
parseCommandLine = ->
|
||||
version = app.getVersion()
|
||||
options = optimist(process.argv[1..])
|
||||
options = yargs(process.argv[1..]).wrap(100)
|
||||
options.usage """
|
||||
Atom Editor v#{version}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user