@@ -22,16 +22,22 @@ var argv = yargs
22
22
. demand ( 1 , Constants . cliMessages . VERSION . DEMAND )
23
23
. command ( 'init' , Constants . cliMessages . INIT . INFO , function ( yargs ) {
24
24
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
+ } ,
31
38
} )
32
- . help ( 'help' )
33
- . wrap ( null )
34
- . argv
39
+ . help ( "help" )
40
+ . wrap ( null ) . argv ;
35
41
36
42
if ( checkCommands ( yargs , argv , 1 ) ) {
37
43
return require ( './commands/init' ) ( argv ) ;
@@ -41,14 +47,21 @@ var argv = yargs
41
47
argv = yargs
42
48
. usage ( 'usage: $0 <buildId>' )
43
49
. 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
+ } ,
52
65
} )
53
66
. help ( 'help' )
54
67
. wrap ( null )
@@ -62,14 +75,21 @@ var argv = yargs
62
75
argv = yargs
63
76
. usage ( 'usage: $0 <buildId>' )
64
77
. 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
+ } ,
73
93
} )
74
94
. help ( 'help' )
75
95
. wrap ( null )
@@ -82,14 +102,21 @@ var argv = yargs
82
102
. command ( 'run' , Constants . cliMessages . RUN . INFO , function ( yargs ) {
83
103
argv = yargs
84
104
. 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
+ } ,
93
120
} )
94
121
. help ( 'help' )
95
122
. wrap ( null )
0 commit comments