@@ -109,6 +109,9 @@ const CONFORM = ({ input, props }) => {
109109 const pkg = op . get ( output , 'newPackage' , { } ) ;
110110
111111 switch ( key ) {
112+ case 'verbosity' :
113+ output [ key ] = Math . max ( Math . min ( parseInt ( val ) , 3 ) , 0 ) || 0 ;
114+ break ;
112115 case 'destination' :
113116 case 'source' :
114117 output [ key ] = formatsource ( val , props ) ;
@@ -195,13 +198,13 @@ const CONFORM = ({ input, props }) => {
195198 */
196199const HELP = ( ) =>
197200 console . log ( `
198- Example:
199- $ arcli library -s components/MyComponentLibrary -d cwd/lib -n MyComponentLibrary
200-
201- When specifying the source [-d, --source] the following shortcuts are available:
202- ${ chalk . cyan ( 'components/' ) } The /.src/app/components source.
203- ${ chalk . cyan ( 'common-ui/' ) } The /.src/app/components/common-ui source.
204- ` ) ;
201+ Example:
202+ $ arcli library -s components/MyComponentLibrary -d cwd/lib -n MyComponentLibrary
203+
204+ When specifying the source [-d, --source] the following shortcuts are available:
205+ ${ chalk . cyan ( 'components/' ) } The /.src/app/components source.
206+ ${ chalk . cyan ( 'common-ui/' ) } The /.src/app/components/common-ui source.
207+ `) ;
205208
206209/**
207210 * FLAGS
@@ -213,6 +216,7 @@ const FLAGS = [
213216 'source' ,
214217 'destination' ,
215218 'version' ,
219+ 'verbosity' ,
216220 'main' ,
217221 'author' ,
218222 'dependencies' ,
@@ -275,6 +279,11 @@ const SCHEMA_SOURCE = ({ params, props }) => {
275279 description : chalk . white ( 'Destination:' ) ,
276280 default : path . join ( 'cwd' , 'lib' , name ) ,
277281 } ,
282+ verbosity : {
283+ description : chalk . white ( 'Verbosity [0-3] (0):' ) ,
284+ default : 0 ,
285+ required : false ,
286+ } ,
278287 } ,
279288 } ;
280289} ;
@@ -469,6 +478,10 @@ const COMMAND = ({ program, props }) =>
469478 . option ( '-s, --source [source]' , 'The library source.' )
470479 . option ( '-d, --destination [destination]' , 'The library destination.' )
471480 . option ( '-V, --ver [version]' , 'The version of the library.' )
481+ . option (
482+ '-T, --verbosity [verbosity]' ,
483+ 'The 0-3 verbosity of output. Default 0.' ,
484+ )
472485 . option ( '-m, --main [main]' , 'The library entry point or main js file.' )
473486 . option ( '-a, --author [author]' , 'The library author.' )
474487 . option ( '--dependencies [dependencies]' , 'The library dependencies.' )
0 commit comments