Update cli option descriptions. Change default filename to strings.format
This commit is contained in:
		| @@ -30,7 +30,7 @@ export const cli = yargs | |||||||
| 	}) | 	}) | ||||||
| 	.option('patterns', { | 	.option('patterns', { | ||||||
| 		alias: 'p', | 		alias: 'p', | ||||||
| 		describe: 'Input file patterns to parse', | 		describe: 'Extract strings from the following file patterns', | ||||||
| 		type: 'array', | 		type: 'array', | ||||||
| 		default: ['/**/*.html', '/**/*.ts'] | 		default: ['/**/*.html', '/**/*.ts'] | ||||||
| 	}) | 	}) | ||||||
| @@ -56,7 +56,7 @@ export const cli = yargs | |||||||
| 	}) | 	}) | ||||||
| 	.option('sort', { | 	.option('sort', { | ||||||
| 		alias: 's', | 		alias: 's', | ||||||
| 		describe: 'Sort translations in the output file in alphabetical order', | 		describe: 'Sort strings in alphabetical order when saving', | ||||||
| 		default: false, | 		default: false, | ||||||
| 		type: 'boolean' | 		type: 'boolean' | ||||||
| 	}) | 	}) | ||||||
|   | |||||||
| @@ -95,7 +95,7 @@ export class ExtractTask implements TaskInterface { | |||||||
| 			const normalizedOutput: string = path.resolve(output); | 			const normalizedOutput: string = path.resolve(output); | ||||||
|  |  | ||||||
| 			let dir: string = normalizedOutput; | 			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()) { | 			if (!fs.existsSync(normalizedOutput) || !fs.statSync(normalizedOutput).isDirectory()) { | ||||||
| 				dir = path.dirname(normalizedOutput); | 				dir = path.dirname(normalizedOutput); | ||||||
| 				filename = path.basename(normalizedOutput); | 				filename = path.basename(normalizedOutput); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user