Add privacy setting to upload.js cli (#422)
This commit is contained in:
parent
05b49c1d08
commit
320f8d7e01
|
@ -12,6 +12,7 @@ program
|
||||||
.option('-U, --username <username>', 'Username')
|
.option('-U, --username <username>', 'Username')
|
||||||
.option('-p, --password <token>', 'Password')
|
.option('-p, --password <token>', 'Password')
|
||||||
.option('-n, --video-name <name>', 'Video name')
|
.option('-n, --video-name <name>', 'Video name')
|
||||||
|
.option('-P, --privacy <privacy number>', 'Privacy')
|
||||||
.option('-N, --nsfw', 'Video is Not Safe For Work')
|
.option('-N, --nsfw', 'Video is Not Safe For Work')
|
||||||
.option('-c, --category <category number>', 'Category number')
|
.option('-c, --category <category number>', 'Category number')
|
||||||
.option('-m, --comments-enabled', 'Enable comments')
|
.option('-m, --comments-enabled', 'Enable comments')
|
||||||
|
@ -81,6 +82,7 @@ async function run () {
|
||||||
fixture: program['file'],
|
fixture: program['file'],
|
||||||
thumbnailfile: program['thumbnailPath'],
|
thumbnailfile: program['thumbnailPath'],
|
||||||
previewfile: program['previewPath'],
|
previewfile: program['previewPath'],
|
||||||
|
privacy: program['privacy'],
|
||||||
support: undefined
|
support: undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue