@@ -43,11 +43,11 @@ interface CommandOptions {
4343 ignoreNpmErrors : boolean
4444 packageLockOnly : boolean
4545 omit : Omittable [ ]
46- specVersion : Spec . Version
46+ gatherLicenseTexts : boolean
4747 flattenComponents : boolean
4848 shortPURLs : boolean
4949 outputReproducible : boolean
50- gatherLicenseTexts : boolean
50+ specVersion : Spec . Version
5151 outputFormat : OutputFormat
5252 outputFile : string
5353 validate : boolean | undefined
@@ -87,6 +87,12 @@ function makeCommand (process: NodeJS.Process): Command {
8787 : [ ] ,
8888 `"${ Omittable . Dev } " if the NODE_ENV environment variable is set to "production", otherwise empty`
8989 )
90+ ) . addOption (
91+ new Option (
92+ '--gather-license-texts' ,
93+ 'Search for license files in components and include them as license evidence.\n' +
94+ 'This feature is experimental.'
95+ ) . default ( false )
9096 ) . addOption (
9197 new Option (
9298 '--flatten-components' ,
@@ -116,12 +122,6 @@ function makeCommand (process: NodeJS.Process): Command {
116122 ) . env (
117123 'BOM_REPRODUCIBLE'
118124 )
119- ) . addOption (
120- new Option (
121- '--gather-license-texts' ,
122- 'Search for license files in components and include them as license evidence.\n' +
123- 'This feature is experimental. (default: false)'
124- ) . default ( false )
125125 ) . addOption (
126126 ( function ( ) {
127127 const o = new Option (
@@ -254,10 +254,10 @@ export async function run (process: NodeJS.Process): Promise<number> {
254254 metaComponentType : options . mcType ,
255255 packageLockOnly : options . packageLockOnly ,
256256 omitDependencyTypes : options . omit ,
257+ gatherLicenseTexts : options . gatherLicenseTexts ,
257258 reproducible : options . outputReproducible ,
258259 flattenComponents : options . flattenComponents ,
259- shortPURLs : options . shortPURLs ,
260- gatherLicenseTexts : options . gatherLicenseTexts
260+ shortPURLs : options . shortPURLs
261261 } ,
262262 myConsole
263263 ) . buildFromProjectDir ( projectDir , process )
0 commit comments