@@ -150,48 +150,8 @@ yargs
150150 choices : [ 'warn' , 'error' , 'off' ] as ReadonlyArray < RuleSeverity > ,
151151 default : 'warn' as RuleSeverity ,
152152 } ,
153- lint : {
154- hidden : true ,
155- deprecated : true ,
156- } ,
157- decorate : {
158- hidden : true ,
159- deprecated : true ,
160- } ,
161- preprocess : {
162- hidden : true ,
163- deprecated : true ,
164- } ,
165153 } ) ,
166154 ( argv ) => {
167- const DEPRECATED_OPTIONS = [ 'lint' , 'preprocess' , 'decorate' ] ;
168- const DECORATORS_DOCUMENTATION_LINK = 'https://redocly.com/docs/cli/decorators/#decorators' ;
169- const JOIN_COMMAND_DOCUMENTATION_LINK = 'https://redocly.com/docs/cli/commands/join/#join' ;
170-
171- DEPRECATED_OPTIONS . forEach ( ( option ) => {
172- if ( argv [ option ] ) {
173- process . stdout . write (
174- `${ colors . red (
175- `Option --${ option } is no longer supported. Please review join command documentation ${ JOIN_COMMAND_DOCUMENTATION_LINK } .`
176- ) } `
177- ) ;
178- process . stdout . write ( '\n\n' ) ;
179-
180- if ( [ 'preprocess' , 'decorate' ] . includes ( option ) ) {
181- process . stdout . write (
182- `${ colors . red (
183- `If you are looking for decorators, please review the decorators documentation ${ DECORATORS_DOCUMENTATION_LINK } .`
184- ) } `
185- ) ;
186- process . stdout . write ( '\n\n' ) ;
187- }
188-
189- yargs . showHelp ( ) ;
190- process . exit ( 1 ) ;
191- }
192- } ) ;
193-
194- process . env . REDOCLY_CLI_COMMAND = 'join' ;
195155 commandWrapper ( handleJoin ) ( argv ) ;
196156 }
197157 )
@@ -538,24 +498,6 @@ yargs
538498 choices : [ 'warn' , 'error' , 'off' ] as ReadonlyArray < RuleSeverity > ,
539499 default : 'warn' as RuleSeverity ,
540500 } ,
541- format : {
542- hidden : true ,
543- deprecated : true ,
544- } ,
545- lint : {
546- hidden : true ,
547- deprecated : true ,
548- } ,
549- 'skip-rule' : {
550- hidden : true ,
551- deprecated : true ,
552- array : true ,
553- type : 'string' ,
554- } ,
555- 'max-problems' : {
556- hidden : true ,
557- deprecated : true ,
558- } ,
559501 } )
560502 . check ( ( argv ) => {
561503 if ( argv . output && ( ! argv . apis || argv . apis . length === 0 ) ) {
@@ -564,24 +506,6 @@ yargs
564506 return true ;
565507 } ) ,
566508 ( argv ) => {
567- const DEPRECATED_OPTIONS = [ 'lint' , 'format' , 'skip-rule' , 'max-problems' ] ;
568- const LINT_AND_BUNDLE_DOCUMENTATION_LINK =
569- 'https://redocly.com/docs/cli/guides/lint-and-bundle/#lint-and-bundle-api-descriptions-with-redocly-cli' ;
570-
571- DEPRECATED_OPTIONS . forEach ( ( option ) => {
572- if ( argv [ option ] ) {
573- process . stdout . write (
574- `${ colors . red (
575- `Option --${ option } is no longer supported. Please use separate commands, as described in the ${ LINT_AND_BUNDLE_DOCUMENTATION_LINK } .`
576- ) } `
577- ) ;
578- process . stdout . write ( '\n\n' ) ;
579- yargs . showHelp ( ) ;
580- process . exit ( 1 ) ;
581- }
582- } ) ;
583-
584- process . env . REDOCLY_CLI_COMMAND = 'bundle' ;
585509 commandWrapper ( handleBundle ) ( argv ) ;
586510 }
587511 )
0 commit comments