parameters: (opts=None, args=None)
return_statement: return cat_pkt_str(p, armor=armor)
docstring: Concatenate packets found in a list of files.
  
      Options
      -------
      - '--armor': armor the output
  
      ARGS: files containing packets to concatenate
docstring_summary: Concatenate packets found in a list of files.
docstring_tokens: Concatenate packets found in a list of files .
function: def cmd_cat_packets(opts=None, args=None):
      """Concatenate packets found in a list of files.
  
      Options
      -------
      - '--armor': armor the output
  
      ARGS: files containing packets to concatenate
      """
      p = []
  
      for filename in args:
          f = file(filename, 'rb')
          p.append(f.read())
          f.close()
  
      if getattr(opts, 'armor', None):
          armor = True
      else:
          armor = False
  
      return cat_pkt_str(p, armor=armor)
function_tokens: def cmd_cat_packets ( opts = None , args = None ) : p = [ ] for filename in args : f = file ( filename , 'rb' ) p . append ( f . read ( ) ) f . close ( ) if getattr ( opts , 'armor' , None ) : armor = True else : armor = False return cat_pkt_str ( p , armor = armor )