From ae53d6586940bc8898e2df9bd72d4b4657417980 Mon Sep 17 00:00:00 2001 From: Marcus Ramse Date: Wed, 17 Apr 2024 17:41:50 +0000 Subject: [PATCH] cli: fix --lang opt (solves #698) --- cli/cli.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/cli.js b/cli/cli.js index 3325f860..81a402a4 100755 --- a/cli/cli.js +++ b/cli/cli.js @@ -10,6 +10,9 @@ const langOption = new Option("--lang ", "Use the given language") .choices(LANGS); function requireLang (opts) { + if (opts.lang) { + return opts.lang; + } if (opts.surpriseMe) { return LANGS[(Math.random()*LANGS.length) >>> 0]; }