mirror of https://github.com/zulip/zulip.git
message-screenshot: Fix commander@12 usage.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f4d109c289
commit
7d6c5beb19
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue