log/doc: --authentication

This commit is contained in:
bordun 2020-05-05 12:21:18 +02:00
parent 4d7ed54186
commit 7a4076f8a6
3 changed files with 5 additions and 1 deletions

View file

@ -92,7 +92,7 @@ module.exports = {
}
},
'remote-root': {type: 'string', describe: 'set remote file browsing root folder', file: {folder: true}},
'authentication': {type: 'string', describe: 'restrict access to "user:password"',
'authentication': {type: 'string', describe: 'restrict access to "user:password" (remote clients will be prompted for these credentials)',
check: (a, argv)=>{
return a.match(/[^:]*:[^:]+/) ? true : 'Auth must be a user:password pair.'
}