From ec6dfb2dc60909ffc7eb144fee5527fc820a76d0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 19 Oct 2021 20:04:41 +0200 Subject: Support multiple enqueue + dequeue --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/index.ts') 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); const args = cliArgs.parse<{ id?: number; - enqueue?: number; - dequeue?: number; + enqueue?: number[]; + dequeue?: number[]; help?: boolean; }>( { id: { type: Number, optional: true }, - enqueue: { type: Number, optional: true }, - dequeue: { type: Number, optional: true }, + enqueue: { type: Number, optional: true, multiple: true }, + dequeue: { type: Number, optional: true, multiple: true }, help: { type: Boolean, optional: true, alias: "h" }, }, { -- cgit v1.2.3-70-g09d2