parameters: (opts=None, args=None)
return_statement: return s
docstring: Slice packets for messages from a file.
  
      Use slice notations "m[x:y:z]" or "L[x:y:z]" where x, y, and z are integers
      (normal Python slice syntax), m is the index of the target message to slice
      and L means slice from leftover packets.
  
      ARGS: file to slice packets (or message) from (only the first file is used)
docstring_summary: Slice packets for messages from a file.
docstring_tokens: Slice packets for messages from a file .
function: def cmd_slice_message(opts=None, args=None):
      """Slice packets for messages from a file.
  
      Use slice notations "m[x:y:z]" or "L[x:y:z]" where x, y, and z are integers
      (normal Python slice syntax), m is the index of the target message to slice
      and L means slice from leftover packets.
  
      ARGS: file to slice packets (or message) from (only the first file is used)
      """
      msg_d = _cat_files([args[0]])
      slice_d = opts.slice_message
  
      pkts = slice_pkt_str(msg_d, slice_d)
  
      if getattr(opts, 'armor', False):
          s = apply_armor(pkts)
  
      else:
          s = ''.join([p.rawstr() for p in pkts])
  
      return s
function_tokens: def cmd_slice_message ( opts = None , args = None ) : msg_d = _cat_files ( [ args [ 0 ] ] ) slice_d = opts . slice_message pkts = slice_pkt_str ( msg_d , slice_d ) if getattr ( opts , 'armor' , False ) : s = apply_armor ( pkts ) else : s = '' . join ( [ p . rawstr ( ) for p in pkts ] ) return s