Method: OpenC3::ProcessorParser#verify_parameters
- Defined in:
- lib/openc3/packets/parsers/processor_parser.rb
#verify_parameters(cmd_or_tlm) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/openc3/packets/parsers/processor_parser.rb', line 44 def verify_parameters(cmd_or_tlm) if cmd_or_tlm == PacketConfig::COMMAND raise @parser.error("PROCESSOR only applies to telemetry packets") end @usage = "PROCESSOR <PROCESSOR NAME> <PROCESSOR CLASS FILENAME> <PROCESSOR SPECIFIC OPTIONS>" @parser.verify_num_parameters(2, nil, @usage) end |