From 6a84909a93405477df217a490b3683d4b09f8652 Mon Sep 17 00:00:00 2001 From: justinMBullard Date: Thu, 19 May 2022 19:22:45 -0400 Subject: [PATCH] Rename transpile-br to allow-brighterscript-in-brightscript --- benchmarks/targets/transpile-brs.js | 2 +- src/cli.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/targets/transpile-brs.js b/benchmarks/targets/transpile-brs.js index a450c69d9..72e33f0b2 100644 --- a/benchmarks/targets/transpile-brs.js +++ b/benchmarks/targets/transpile-brs.js @@ -20,7 +20,7 @@ module.exports = async (suite, name, brighterscript, projectPath, options) => { } if (files.length === 0) { - console.log('[transpile-brs] No brs|bs|d.bs files found in program'); + console.log('[allow-brighterscript-in-brightscript] No brs|bs|d.bs files found in program'); return; } suite.add(name, () => { diff --git a/src/cli.ts b/src/cli.ts index 339645ad1..e327dc1c7 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -10,7 +10,7 @@ let options = yargs .help('help', 'View help information about this tool.') .option('create-package', { type: 'boolean', defaultDescription: 'true', description: 'Creates a zip package. This setting is ignored when deploy is enabled.' }) .option('source-map', { type: 'boolean', defaultDescription: 'false', description: 'Enables generating sourcemap files, which allow debugging tools to show the original source code while running the emitted files.' }) - .option('transpile-brs', { type: 'boolean', defaultDescription: 'false', description: 'Enables transpiling files with the BRS extension, in addition to BS files.' }) + .option('allow-brighterscript-in-brightscript', { type: 'boolean', defaultDescription: 'false', description: 'Enables BrighterScript code om BrightScript files.' }) .option('cwd', { type: 'string', description: 'Override the current working directory.' }) .option('copy-to-staging', { type: 'boolean', defaultDescription: 'true', description: 'Copy project files into the staging folder, ready to be packaged.' }) .option('diagnostic-level', { type: 'string', defaultDescription: '"warn"', description: 'Specify what diagnostic types should be printed to the console. Value can be "error", "warn", "hint", "info".' })