forked from jchomaz/Vulture
Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
18
VApp/node_modules/help-me/example.js
generated
vendored
Normal file
18
VApp/node_modules/help-me/example.js
generated
vendored
Normal file
@@ -0,0 +1,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()
|
||||
}
|
||||
Reference in New Issue
Block a user