From 034d0a6d1fbf2d9d0354e428ff25091389772919 Mon Sep 17 00:00:00 2001 From: ParvinEyvazov Date: Wed, 29 Nov 2023 23:09:01 +0400 Subject: [PATCH] fix: invalid outpout filename fixed --- makefile | 5 ++++- src/cli/cli.ts | 2 +- src/utils/console.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index d7c8e46..102bfa9 100644 --- a/makefile +++ b/makefile @@ -27,4 +27,7 @@ run-cli-mac: sudo yarn sudo tsdx build sudo npm link - jsontt \ No newline at end of file + jsontt + +link: + sudo npm link \ No newline at end of file diff --git a/src/cli/cli.ts b/src/cli/cli.ts index bc889ad..57b46a5 100644 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -44,7 +44,7 @@ export async function initializeCli() { ) .addOption(new Option(`-f, --from `, messages.cli.from)) .addOption(new Option(`-t, --to `, messages.cli.to)) - .addOption(new Option(`-n, --name [string]`, messages.cli.newFileName)) + .addOption(new Option(`-n, --name `, messages.cli.newFileName)) .addHelpText( 'after', `\n${messages.cli.usageWithProxy}\n${messages.cli.usageByOps}` diff --git a/src/utils/console.ts b/src/utils/console.ts index f37a031..c721701 100644 --- a/src/utils/console.ts +++ b/src/utils/console.ts @@ -52,7 +52,7 @@ export const messages = { translator: 'specify translation service', from: 'the translate language from it, e.g., --from en', to: 'the Languages to translate into, e.g., --to ar fr zh-CN', - newFileName: 'the new file name (optional), e.g., --name newFileName', + newFileName: '(optional ↵) output filename, e.g., --name myApp', from_source: 'From which source?', from_message: 'From which language?', to_message: