Skip to content

Commit

Permalink
fix: invalid outpout filename fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ParvinEyvazov committed Nov 29, 2023
1 parent a87a2b0 commit 034d0a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ run-cli-mac:
sudo yarn
sudo tsdx build
sudo npm link
jsontt
jsontt

link:
sudo npm link
2 changes: 1 addition & 1 deletion src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function initializeCli() {
)
.addOption(new Option(`-f, --from <Language>`, messages.cli.from))
.addOption(new Option(`-t, --to <Languages...>`, messages.cli.to))
.addOption(new Option(`-n, --name [string]`, messages.cli.newFileName))
.addOption(new Option(`-n, --name <string>`, messages.cli.newFileName))
.addHelpText(
'after',
`\n${messages.cli.usageWithProxy}\n${messages.cli.usageByOps}`
Expand Down
2 changes: 1 addition & 1 deletion src/utils/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 034d0a6

Please sign in to comment.