@@ -128,26 +128,9 @@ module.exports = function(optimist, argv, convertOptions) {
128128 }
129129
130130 if ( argv . watch ) {
131- // TODO remove this in next major version
132- if ( options . watch && typeof options . watch === "object" ) {
133- console . warn ( "options.watch is deprecated: Use 'options.watchOptions' instead" ) ;
134- options . watchOptions = options . watch ;
135- }
136- // TODO remove this in next major version
137- if ( options . watchDelay ) {
138- console . warn ( "options.watchDelay is deprecated: Use 'options.watchOptions.aggregateTimeout' instead" ) ;
139- options . watchOptions = options . watchOptions || { } ;
140- options . watchOptions . aggregateTimeout = options . watchDelay ;
141- }
142131 options . watch = true ;
143132 }
144133
145- if ( argv [ "watch-delay" ] ) {
146- console . warn ( "--watch-delay is deprecated: Use '--watch-aggregate-timeout' instead" ) ;
147- options . watchOptions = options . watchOptions || { } ;
148- options . watchOptions . aggregateTimeout = + argv [ "watch-delay" ] ;
149- }
150-
151134 if ( argv [ "watch-aggregate-timeout" ] ) {
152135 options . watchOptions = options . watchOptions || { } ;
153136 options . watchOptions . aggregateTimeout = + argv [ "watch-aggregate-timeout" ] ;
@@ -322,12 +305,6 @@ module.exports = function(optimist, argv, convertOptions) {
322305 options . output . path = value ;
323306 } ) ;
324307
325- ifArg ( "output-file" , function ( value ) {
326- console . warn ( "output.file will be deprecated: Use 'output.filename' instead" ) ;
327- ensureObject ( options , "output" ) ;
328- options . output . filename = value ;
329- } ) ;
330-
331308 ifArg ( "output-filename" , function ( value ) {
332309 ensureObject ( options , "output" ) ;
333310 options . output . filename = value ;
0 commit comments