Skip to content

Commit

Permalink
chore: presetversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Dec 31, 2024
1 parent 918727a commit 237e7b4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/common-cli/src/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function mainCLI(pkgName: string, stackName: string) {
yargs
.parserConfiguration({
'strip-dashed': true,
'dot-notation': true,
})
.command(
'$0 [name] [options]',
Expand All @@ -53,22 +54,23 @@ export async function mainCLI(pkgName: string, stackName: string) {
'Will you be using GitHub as your git hosting provider?',
boolean: true,
})
.option('presetVersion', {
describe: `Version of the ${pkgFolderName} package to be used. Latest by default.`,
type: 'string',
default: 'latest',
})
.option('verbose', {
describe: 'Enable more logging information',
type: 'boolean',
default: process.env['NX_VERBOSE_LOGGING'] === 'true',
})
.option('presetVersion', {
describe: 'Enable more logging information',
type: 'string',
default: 'latest',
})
)
.help('help', 'Show help') as yargs.Argv<CLIArguments>
).parseSync(process.argv.slice(2)); // exclude the first two arguments ("$0" and "_" )

).parseSync();
/*eslint prefer-const: ["error", {"destructuring": "all"}]*/
let {
_,
$0,
name,
useNxWrapper,
nxCloud,
Expand Down

0 comments on commit 237e7b4

Please sign in to comment.