message-screenshot: Fix commander@12 usage.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-04-08 16:25:22 -07:00 committed by Anders Kaseorg
parent f4d109c289
commit 7d6c5beb19
1 changed files with 2 additions and 2 deletions

View File

@ -4,14 +4,14 @@
const path = require("path");
const commander = require("commander");
const {program} = require("commander");
require("css.escape");
const mkdirp = require("mkdirp");
const puppeteer = require("puppeteer");
const options = {};
commander
program
.arguments("<message_id> <image_path> <realm_uri")
.action((messageId, imagePath, realmUri) => {
options.messageId = messageId;