Skip to content

Commit 2e8d39d

Browse files
committed
fix: error message and default command
1 parent fa1b412 commit 2e8d39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const getCompileOptions = (args: any): CompileOptions => {
2929
const sort = args.poSort;
3030
const escapeCharacters = args.poEscChars;
3131
if (isNaN(foldLength)) {
32-
console.error("--po-fold-length must be a number or false");
32+
console.error("--po-fold-len must be a number or false");
3333
process.exit(1);
3434
}
3535
return { foldLength, sort, escapeCharacters };
@@ -104,7 +104,7 @@ const syncCommand = new SharedOptionsCommand("sync")
104104
await sync(po, pot, getCompileOptions(args));
105105
});
106106

107-
program.addCommand(syncCommand, { isDefault: true });
107+
program.addCommand(syncCommand);
108108

109109
// program command `userdict` with help text `open/edit user dictionary`
110110
program

0 commit comments

Comments
 (0)