From 2e8d39d27b8fc1c1f05e8892ff5373573bdbd000 Mon Sep 17 00:00:00 2001 From: ryanhex53 Date: Tue, 17 Dec 2024 22:39:56 +0800 Subject: [PATCH] fix: error message and default command --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7811ba7..83d1bf2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,7 +29,7 @@ const getCompileOptions = (args: any): CompileOptions => { const sort = args.poSort; const escapeCharacters = args.poEscChars; if (isNaN(foldLength)) { - console.error("--po-fold-length must be a number or false"); + console.error("--po-fold-len must be a number or false"); process.exit(1); } return { foldLength, sort, escapeCharacters }; @@ -104,7 +104,7 @@ const syncCommand = new SharedOptionsCommand("sync") await sync(po, pot, getCompileOptions(args)); }); -program.addCommand(syncCommand, { isDefault: true }); +program.addCommand(syncCommand); // program command `userdict` with help text `open/edit user dictionary` program