mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 12:16:29 +00:00
19 lines
378 B
JavaScript
19 lines
378 B
JavaScript
'use strict'
|
|
|
|
const path = require('path')
|
|
const commist = require('commist')()
|
|
const help = require('./')({
|
|
dir: path.join(path.dirname(require.main.filename), 'doc')
|
|
})
|
|
|
|
commist.register('help', help.toStdout)
|
|
commist.register('start', function () {
|
|
console.log('Starting the script!')
|
|
})
|
|
|
|
const res = commist.parse(process.argv.splice(2))
|
|
|
|
if (res) {
|
|
help.toStdout()
|
|
}
|