@@ -95,7 +95,7 @@ def parse!(args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
95
95
@args . options do |opts | # rubocop:disable Metrics/BlockLength
96
96
opts . banner = banner
97
97
opts . on ( '--publish' , 'Publish a report to https://reports.cucumber.io' ) { @options [ :formats ] << publisher }
98
- opts . on ( '--no- publish-ad ' , 'Don\'t print advertisement banner about publishing reports' ) { set_option :publish_ad , false }
98
+ opts . on ( '--publish-quiet ' , 'Don\'t print information banner about publishing reports' ) { set_option :publish_quiet }
99
99
opts . on ( '-r LIBRARY|DIR' , '--require LIBRARY|DIR' , *require_files_msg ) { |lib | require_files ( lib ) }
100
100
101
101
opts . on ( '-j DIR' , '--jars DIR' , 'Load all the jars under DIR' ) { |jars | load_jars ( jars ) } if Cucumber ::JRUBY
@@ -120,7 +120,7 @@ def parse!(args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
120
120
opts . on ( '-s' , '--no-source' , "Don't print the file and line of the step definition with the steps." ) { set_option :source , false }
121
121
opts . on ( '-i' , '--no-snippets' , "Don't print snippets for pending steps." ) { set_option :snippets , false }
122
122
opts . on ( '-I' , '--snippet-type TYPE' , *snippet_type_msg ) { |v | set_option :snippet_type , v . to_sym }
123
- opts . on ( '-q' , '--quiet' , 'Alias for --no-snippets --no-source --no-duration --no- publish-ad .' ) { shut_up }
123
+ opts . on ( '-q' , '--quiet' , 'Alias for --no-snippets --no-source --no-duration --publish-quiet .' ) { shut_up }
124
124
opts . on ( '--no-duration' , "Don't print the duration at the end of the summary" ) { set_option :duration , false }
125
125
opts . on ( '-b' , '--backtrace' , 'Show full backtrace for all errors.' ) { Cucumber . use_full_backtrace = true }
126
126
opts . on ( '-S' , '--[no-]strict' , *strict_msg ) { |setting | set_strict ( setting ) }
@@ -424,7 +424,7 @@ def exit_ok(text)
424
424
end
425
425
426
426
def shut_up
427
- @options [ :publish_ad ] = false
427
+ @options [ :publish_quiet ] = true
428
428
@options [ :snippets ] = false
429
429
@options [ :source ] = false
430
430
@options [ :duration ] = false
0 commit comments