summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-10-19 20:04:41 +0200
committerVolpeon <git@volpeon.ink>2021-10-19 20:04:41 +0200
commitec6dfb2dc60909ffc7eb144fee5527fc820a76d0 (patch)
tree9e2e3a8e977a93a0d3c17946b7ac0abe32b8f9aa
parentFix queue loading (diff)
downloadferalbot-ec6dfb2dc60909ffc7eb144fee5527fc820a76d0.tar.gz
feralbot-ec6dfb2dc60909ffc7eb144fee5527fc820a76d0.tar.bz2
feralbot-ec6dfb2dc60909ffc7eb144fee5527fc820a76d0.zip
Support multiple enqueue + dequeue
-rw-r--r--src/index.ts8
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
8const args = cliArgs.parse<{ 8const 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 {