docs: custom module nativeRequire

This commit is contained in:
bordun 2020-12-15 09:10:17 +01:00
parent b1ed680335
commit 471929b476
4 changed files with 10 additions and 2 deletions

View file

@ -17,7 +17,7 @@ module.exports = {
return fs.existsSync(arg) ? true : 'State file not found: ' + arg
}
},
'c': {alias: 'custom-module', type: 'string', file: {name: 'OSC Custom module (.js)', extensions: ['js']}, describe: 'custom module file to load (.js)',
'c': {alias: 'custom-module', type: 'string', file: {name: 'OSC Custom module (.js)', extensions: ['js']}, describe: 'custom module file to load (.js)\n WARNING: custom module can access the file system, use at your own risk.',
check: (arg)=>{
return fs.existsSync(arg) ? true : 'Custom module file not found: ' + arg
},