From 629aa142a6e643977fe6c94eb3f9d1fed8c6e3f0 Mon Sep 17 00:00:00 2001 From: Luca Greco Date: Wed, 3 Mar 2021 16:58:02 +0100 Subject: [PATCH] fix: Move filename from global to build command option (#2178) --- src/program.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/program.js b/src/program.js index 1dca97bf11..9b17121bcf 100644 --- a/src/program.js +++ b/src/program.js @@ -484,18 +484,6 @@ Example: $0 --help run. default: true, type: 'boolean', }, - 'filename': { - alias: 'n', - describe: 'Name of the created extension package file.', - default: undefined, - normalize: false, - demandOption: false, - requiresArg: true, - type: 'string', - coerce: throwUsageErrorIfArray( - 'Multiple --filename/-n option are not allowed' - ), - }, }); program @@ -507,6 +495,18 @@ Example: $0 --help run. describe: 'Watch for file changes and re-build as needed', type: 'boolean', }, + 'filename': { + alias: 'n', + describe: 'Name of the created extension package file.', + default: undefined, + normalize: false, + demandOption: false, + requiresArg: true, + type: 'string', + coerce: throwUsageErrorIfArray( + 'Multiple --filename/-n option are not allowed' + ), + }, 'overwrite-dest': { alias: 'o', describe: 'Overwrite destination package if it exists.',