Skip to content

Commit 034d0a6

Browse files
committed
fix: invalid outpout filename fixed
1 parent a87a2b0 commit 034d0a6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ run-cli-mac:
2727
sudo yarn
2828
sudo tsdx build
2929
sudo npm link
30-
jsontt
30+
jsontt
31+
32+
link:
33+
sudo npm link

src/cli/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function initializeCli() {
4444
)
4545
.addOption(new Option(`-f, --from <Language>`, messages.cli.from))
4646
.addOption(new Option(`-t, --to <Languages...>`, messages.cli.to))
47-
.addOption(new Option(`-n, --name [string]`, messages.cli.newFileName))
47+
.addOption(new Option(`-n, --name <string>`, messages.cli.newFileName))
4848
.addHelpText(
4949
'after',
5050
`\n${messages.cli.usageWithProxy}\n${messages.cli.usageByOps}`

src/utils/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const messages = {
5252
translator: 'specify translation service',
5353
from: 'the translate language from it, e.g., --from en',
5454
to: 'the Languages to translate into, e.g., --to ar fr zh-CN',
55-
newFileName: 'the new file name (optional), e.g., --name newFileName',
55+
newFileName: '(optional ↵) output filename, e.g., --name myApp',
5656
from_source: 'From which source?',
5757
from_message: 'From which language?',
5858
to_message:

0 commit comments

Comments
 (0)