mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +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()
|
|
}
|