@@ -22,16 +22,22 @@ var argv = yargs
2222 . demand ( 1 , Constants . cliMessages . VERSION . DEMAND )
2323 . command ( 'init' , Constants . cliMessages . INIT . INFO , function ( yargs ) {
2424 argv = yargs
25- . usage ( 'usage: $0 init [options]' )
26- . options ( 'p' , {
27- alias : 'path' ,
28- default : false ,
29- description : Constants . cliMessages . INIT . DESC ,
30- type : 'string'
25+ . usage ( "usage: $0 init [options]" )
26+ . options ( {
27+ 'p' : {
28+ alias : "path" ,
29+ default : false ,
30+ description : Constants . cliMessages . INIT . DESC ,
31+ type : "string" ,
32+ } ,
33+ 'disable-usage-reporting' : {
34+ default : undefined ,
35+ description : Constants . cliMessages . COMMON . DISABLE_USAGE_REPORTING ,
36+ type : "boolean"
37+ } ,
3138 } )
32- . help ( 'help' )
33- . wrap ( null )
34- . argv
39+ . help ( "help" )
40+ . wrap ( null ) . argv ;
3541
3642 if ( checkCommands ( yargs , argv , 1 ) ) {
3743 return require ( './commands/init' ) ( argv ) ;
@@ -41,14 +47,21 @@ var argv = yargs
4147 argv = yargs
4248 . usage ( 'usage: $0 <buildId>' )
4349 . demand ( 1 , Constants . cliMessages . BUILD . DEMAND )
44- . options ( 'cf' , {
45- alias : 'config-file' ,
46- describe : Constants . cliMessages . BUILD . DESC ,
47- default : '/browserstack.json' ,
48- type : 'string' ,
49- nargs : 1 ,
50- demand : true ,
51- demand : Constants . cliMessages . BUILD . CONFIG_DEMAND
50+ . options ( {
51+ 'cf' : {
52+ alias : 'config-file' ,
53+ describe : Constants . cliMessages . BUILD . DESC ,
54+ default : '/browserstack.json' ,
55+ type : 'string' ,
56+ nargs : 1 ,
57+ demand : true ,
58+ demand : Constants . cliMessages . BUILD . CONFIG_DEMAND
59+ } ,
60+ 'disable-usage-reporting' : {
61+ default : undefined ,
62+ description : Constants . cliMessages . COMMON . DISABLE_USAGE_REPORTING ,
63+ type : "boolean"
64+ } ,
5265 } )
5366 . help ( 'help' )
5467 . wrap ( null )
@@ -62,14 +75,21 @@ var argv = yargs
6275 argv = yargs
6376 . usage ( 'usage: $0 <buildId>' )
6477 . demand ( 1 , Constants . cliMessages . BUILD . DEMAND )
65- . options ( 'cf' , {
66- alias : 'config-file' ,
67- describe : Constants . cliMessages . BUILD . DESC ,
68- default : '/browserstack.json' ,
69- type : 'string' ,
70- nargs : 1 ,
71- demand : true ,
72- demand : Constants . cliMessages . BUILD . CONFIG_DEMAND
78+ . options ( {
79+ 'cf' : {
80+ alias : 'config-file' ,
81+ describe : Constants . cliMessages . BUILD . DESC ,
82+ default : '/browserstack.json' ,
83+ type : 'string' ,
84+ nargs : 1 ,
85+ demand : true ,
86+ demand : Constants . cliMessages . BUILD . CONFIG_DEMAND
87+ } ,
88+ 'disable-usage-reporting' : {
89+ default : undefined ,
90+ description : Constants . cliMessages . COMMON . DISABLE_USAGE_REPORTING ,
91+ type : "boolean"
92+ } ,
7393 } )
7494 . help ( 'help' )
7595 . wrap ( null )
@@ -82,14 +102,21 @@ var argv = yargs
82102 . command ( 'run' , Constants . cliMessages . RUN . INFO , function ( yargs ) {
83103 argv = yargs
84104 . usage ( 'usage: $0 build' )
85- . options ( 'cf' , {
86- alias : 'config-file' ,
87- describe : Constants . cliMessages . RUN . DESC ,
88- default : '/browserstack.json' ,
89- type : 'string' ,
90- nargs : 1 ,
91- demand : true ,
92- demand : Constants . cliMessages . RUN . CONFIG_DEMAND
105+ . options ( {
106+ 'cf' : {
107+ alias : 'config-file' ,
108+ describe : Constants . cliMessages . RUN . DESC ,
109+ default : '/browserstack.json' ,
110+ type : 'string' ,
111+ nargs : 1 ,
112+ demand : true ,
113+ demand : Constants . cliMessages . RUN . CONFIG_DEMAND
114+ } ,
115+ 'disable-usage-reporting' : {
116+ default : undefined ,
117+ description : Constants . cliMessages . COMMON . DISABLE_USAGE_REPORTING ,
118+ type : "boolean"
119+ } ,
93120 } )
94121 . help ( 'help' )
95122 . wrap ( null )
0 commit comments