diff options
author | Volpeon <git@volpeon.ink> | 2021-10-19 20:04:41 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-10-19 20:04:41 +0200 |
commit | ec6dfb2dc60909ffc7eb144fee5527fc820a76d0 (patch) | |
tree | 9e2e3a8e977a93a0d3c17946b7ac0abe32b8f9aa /src/index.ts | |
parent | Fix queue loading (diff) | |
download | feralbot-ec6dfb2dc60909ffc7eb144fee5527fc820a76d0.tar.gz feralbot-ec6dfb2dc60909ffc7eb144fee5527fc820a76d0.tar.bz2 feralbot-ec6dfb2dc60909ffc7eb144fee5527fc820a76d0.zip |
Support multiple enqueue + dequeue
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.ts b/src/index.ts index 86d55ed..3702746 100644 --- a/src/index.ts +++ b/src/index.ts | |||
@@ -7,14 +7,14 @@ export const queueDb = new PostDatabase("queue.json", 50); | |||
7 | 7 | ||
8 | const args = cliArgs.parse<{ | 8 | const args = cliArgs.parse<{ |
9 | id?: number; | 9 | id?: number; |
10 | enqueue?: number; | 10 | enqueue?: number[]; |
11 | dequeue?: number; | 11 | dequeue?: number[]; |
12 | help?: boolean; | 12 | help?: boolean; |
13 | }>( | 13 | }>( |
14 | { | 14 | { |
15 | id: { type: Number, optional: true }, | 15 | id: { type: Number, optional: true }, |
16 | enqueue: { type: Number, optional: true }, | 16 | enqueue: { type: Number, optional: true, multiple: true }, |
17 | dequeue: { type: Number, optional: true }, | 17 | dequeue: { type: Number, optional: true, multiple: true }, |
18 | help: { type: Boolean, optional: true, alias: "h" }, | 18 | help: { type: Boolean, optional: true, alias: "h" }, |
19 | }, | 19 | }, |
20 | { | 20 | { |