From 7b10b246e65e6b95e9dff9b36bc76b8b14e8df79 Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Tue, 21 Mar 2017 15:59:03 +0100 Subject: [PATCH] Update cli option descriptions. Change default filename to strings.format --- src/cli/cli.ts | 4 ++-- src/cli/tasks/extract.task.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/cli.ts b/src/cli/cli.ts index 33a94f1..f3ea9c8 100755 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -30,7 +30,7 @@ export const cli = yargs }) .option('patterns', { alias: 'p', - describe: 'Input file patterns to parse', + describe: 'Extract strings from the following file patterns', type: 'array', default: ['/**/*.html', '/**/*.ts'] }) @@ -56,7 +56,7 @@ export const cli = yargs }) .option('sort', { alias: 's', - describe: 'Sort translations in the output file in alphabetical order', + describe: 'Sort strings in alphabetical order when saving', default: false, type: 'boolean' }) diff --git a/src/cli/tasks/extract.task.ts b/src/cli/tasks/extract.task.ts index 17fcc8d..d3dec1e 100644 --- a/src/cli/tasks/extract.task.ts +++ b/src/cli/tasks/extract.task.ts @@ -95,7 +95,7 @@ export class ExtractTask implements TaskInterface { const normalizedOutput: string = path.resolve(output); let dir: string = normalizedOutput; - let filename: string = `template.${this._compiler.extension}`; + let filename: string = `strings.${this._compiler.extension}`; if (!fs.existsSync(normalizedOutput) || !fs.statSync(normalizedOutput).isDirectory()) { dir = path.dirname(normalizedOutput); filename = path.basename(normalizedOutput);