aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/upload.ts
diff options
context:
space:
mode:
authorOlivier Jolly <zeograd@users.noreply.github.com>2018-03-27 16:15:40 +0200
committerChocobozzz <me@florianbigard.com>2018-03-27 16:15:40 +0200
commit320f8d7e01eea760ceb8b71727694912eeebd0dc (patch)
treea3733df19fb7155858108b959aeee51dace0173f /server/tools/upload.ts
parent05b49c1d08794a49cb682542f69b786077fdc791 (diff)
downloadPeerTube-320f8d7e01eea760ceb8b71727694912eeebd0dc.tar.gz
PeerTube-320f8d7e01eea760ceb8b71727694912eeebd0dc.tar.zst
PeerTube-320f8d7e01eea760ceb8b71727694912eeebd0dc.zip
Add privacy setting to upload.js cli (#422)
Diffstat (limited to 'server/tools/upload.ts')
-rw-r--r--server/tools/upload.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/tools/upload.ts b/server/tools/upload.ts
index 94ea224b6..e835e61f6 100644
--- a/server/tools/upload.ts
+++ b/server/tools/upload.ts
@@ -12,6 +12,7 @@ program
12 .option('-U, --username <username>', 'Username') 12 .option('-U, --username <username>', 'Username')
13 .option('-p, --password <token>', 'Password') 13 .option('-p, --password <token>', 'Password')
14 .option('-n, --video-name <name>', 'Video name') 14 .option('-n, --video-name <name>', 'Video name')
15 .option('-P, --privacy <privacy number>', 'Privacy')
15 .option('-N, --nsfw', 'Video is Not Safe For Work') 16 .option('-N, --nsfw', 'Video is Not Safe For Work')
16 .option('-c, --category <category number>', 'Category number') 17 .option('-c, --category <category number>', 'Category number')
17 .option('-m, --comments-enabled', 'Enable comments') 18 .option('-m, --comments-enabled', 'Enable comments')
@@ -81,6 +82,7 @@ async function run () {
81 fixture: program['file'], 82 fixture: program['file'],
82 thumbnailfile: program['thumbnailPath'], 83 thumbnailfile: program['thumbnailPath'],
83 previewfile: program['previewPath'], 84 previewfile: program['previewPath'],
85 privacy: program['privacy'],
84 support: undefined 86 support: undefined
85 } 87 }
86 88