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

Commit

Permalink
Update meow interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 26, 2017
1 parent 8c4fa62 commit 7d1f0df
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions bin/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,32 @@ const getMainFile = require('./get-main-file')
require('update-notifier')({ pkg }).notify()

const cli = require('meow')(
require('fs').readFileSync(path.join(__dirname, 'help.txt'), 'utf8'),
{
pkg,
help: require('fs').readFileSync(path.join(__dirname, 'help.txt'), 'utf8')
},
{
alias: {
p: 'port',
L: 'poll',
v: 'version',
h: 'help',
i: 'ignore',
H: 'host',
c: 'cold',
s: 'silent'
},
default: {
poll: false,
port: 3000
flags: {
port: {
type: 'number',
alias: 'p',
default: 3000
},
poll: {
type: 'boolean',
alias: 'L',
default: false
},
ignore: {
alias: 'i'
},
host: {
alias: 'H'
},
cold: {
alias: 'c'
},
silent: {
alias: 's'
}
}
}
)
Expand Down

0 comments on commit 7d1f0df

Please sign in to comment.