Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Switch from deprecated optimist to yargs (version used by atom/atom)
Browse files Browse the repository at this point in the history
  • Loading branch information
damieng committed Oct 23, 2017
1 parent 27ea1aa commit ef1f02d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"cson-parser": "^1.3.0",
"fs-plus": "^3.0.0",
"optimist": "~0.4.0"
"yargs": "^3.23.0"
},
"devDependencies": {
"jasmine-focused": "1.x",
Expand Down
5 changes: 3 additions & 2 deletions src/csonc.coffee
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
fs = require 'fs'
path = require 'path'
optimist = require 'optimist'
yargs = require 'yargs'
CSON = require 'cson-parser'

module.exports = (argv=[]) ->
options = optimist(argv)

options = yargs(argv)
options.usage """
Usage: csonc [options] cson_file --output json_file
csonc [options] < cson_file [> json_file]
Expand Down

0 comments on commit ef1f02d

Please sign in to comment.