Skip to content

Commit

Permalink
fix: error message and default command
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhex53 committed Dec 17, 2024
1 parent fa1b412 commit 2e8d39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2e8d39d

Please sign in to comment.