@@ -32,7 +32,7 @@ def self.call(command, arguments, prog_name)
3232 parsed_options = command . default_params . merge ( parsed_options )
3333 parse_required_params ( command , arguments , prog_name , parsed_options )
3434 rescue ::OptionParser ::ParseError
35- Result . failure ( "ERROR: \" #{ prog_name } \" was called with arguments \" #{ original_arguments . join ( " " ) } \" " ) # rubocop:disable Metrics /LineLength
35+ Result . failure ( "ERROR: \" #{ prog_name } \" was called with arguments \" #{ original_arguments . join ( " " ) } \" " ) # rubocop:disable Layout /LineLength
3636 end
3737
3838 # @since 0.1.0
@@ -42,14 +42,14 @@ def self.call(command, arguments, prog_name)
4242 def self . parse_required_params ( command , arguments , prog_name , parsed_options )
4343 parsed_params = match_arguments ( command . arguments , arguments )
4444 parsed_required_params = match_arguments ( command . required_arguments , arguments )
45- all_required_params_satisfied = command . required_arguments . all? { |param | !parsed_required_params [ param . name ] . nil? } # rubocop:disable Metrics /LineLength
45+ all_required_params_satisfied = command . required_arguments . all? { |param | !parsed_required_params [ param . name ] . nil? } # rubocop:disable Layout /LineLength
4646
4747 unused_arguments = arguments . drop ( command . required_arguments . length )
4848
4949 unless all_required_params_satisfied
5050 parsed_required_params_values = parsed_required_params . values . compact
5151
52- usage = "\n Usage: \" #{ prog_name } #{ command . required_arguments . map ( &:description_name ) . join ( " " ) } " # rubocop:disable Metrics /LineLength
52+ usage = "\n Usage: \" #{ prog_name } #{ command . required_arguments . map ( &:description_name ) . join ( " " ) } " # rubocop:disable Layout /LineLength
5353
5454 usage += " | #{ prog_name } SUBCOMMAND" if command . subcommands . any?
5555
@@ -58,7 +58,7 @@ def self.parse_required_params(command, arguments, prog_name, parsed_options)
5858 if parsed_required_params_values . empty?
5959 return Result . failure ( "ERROR: \" #{ prog_name } \" was called with no arguments#{ usage } " )
6060 else
61- return Result . failure ( "ERROR: \" #{ prog_name } \" was called with arguments #{ parsed_required_params_values } #{ usage } " ) # rubocop:disable Metrics /LineLength
61+ return Result . failure ( "ERROR: \" #{ prog_name } \" was called with arguments #{ parsed_required_params_values } #{ usage } " ) # rubocop:disable Layout /LineLength
6262 end
6363 end
6464
0 commit comments