• File: example.js
  • Full Path: /var/www/nodejs/simo_meps_file_script/node_modules/help-me/example.js
  • Date Modified: 02/28/2025 8:55 PM
  • File size: 378 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'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()
}