chenyc
2025-12-09 545c24c6a711d71b65f3d4e8122fee3837fb1edc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'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()
}