parameters: ()
return_statement: return options
docstring: Registers the command-line options.
docstring_summary: Registers the command-line options.
docstring_tokens: Registers the command - line options .
function: def _parse_args():
    """Registers the command-line options."""
    usage = "usage: %prog [options]"
    parser = optparse.OptionParser(usage=usage)
  
    parser.add_option('--width', type='int',
                      default=352,
                      help=('Width of the YUV file\'s frames. '
                            'Default: %default'))
    parser.add_option('--height', type='int', default=288,
                      help=('Height of the YUV file\'s frames. '
                            'Default: %default'))
    parser.add_option('--crop_height', type='int', default=32,
                      help=('How much of the top of the YUV file to crop. '
                            'Has to be module of 2. Default: %default'))
    parser.add_option('--yuv_file', type='string',
                      help=('The YUV file to be cropped.'))
    parser.add_option('--output_file', type='string', default='output.yuv',
                      help=('The output YUV file containing the cropped YUV. '
                            'Default: %default'))
    options = parser.parse_args()[0]
    if not options.yuv_file:
      parser.error('yuv_file argument missing. Please specify input YUV file!')
    return options
function_tokens: def _parse_args ( ) : usage = "usage: %prog [options]" parser = optparse . OptionParser ( usage = usage ) parser . add_option ( '--width' , type = 'int' , default = 352 , help = ( 'Width of the YUV file\'s frames. ' 'Default: %default' ) ) parser . add_option ( '--height' , type = 'int' , default = 288 , help = ( 'Height of the YUV file\'s frames. ' 'Default: %default' ) ) parser . add_option ( '--crop_height' , type = 'int' , default = 32 , help = ( 'How much of the top of the YUV file to crop. ' 'Has to be module of 2. Default: %default' ) ) parser . add_option ( '--yuv_file' , type = 'string' , help = ( 'The YUV file to be cropped.' ) ) parser . add_option ( '--output_file' , type = 'string' , default = 'output.yuv' , help = ( 'The output YUV file containing the cropped YUV. ' 'Default: %default' ) ) options = parser . parse_args ( ) [ 0 ] if not options . yuv_file : parser . error ( 'yuv_file argument missing. Please specify input YUV file!' ) return options