Allow usernames and post IDs to be read from file.

This commit is contained in:
2024-09-11 05:16:56 +02:00
parent 00de0d43f5
commit 352b2a66d7
4 changed files with 43 additions and 13 deletions
+8
View File
@@ -11,11 +11,19 @@ function getArgs() {
describe: 'Reddit usernames to fetch posts from',
type: 'array',
})
.option('file-users', {
describe: 'Load reddit usernames from file',
type: 'string',
})
.option('posts', {
alias: 'post',
describe: 'Reddit post IDs to fetch',
type: 'array',
})
.option('file-posts', {
describe: 'Load reddit post IDs from file',
type: 'string',
})
.option('limit', {
describe: 'Maximum amount of posts to fetch per supplied user (!), after filtering out ignored, cross- and reposts',
type: 'number',