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('--zxing_path', type='string',
                      help=('The path to where the zxing executable is located. '
                            'If omitted, it will be assumed to be present in the '
                            'PATH with the name zxing[.exe].'))
    parser.add_option('--ffmpeg_path', type='string',
                      help=('The path to where the ffmpeg executable is located. '
                            'If omitted, it will be assumed to be present in the '
                            'PATH with the name ffmpeg[.exe].'))
    parser.add_option('--yuv_frame_width', type='int', default=640,
                      help='Width of the YUV file\'s frames. Default: %default')
    parser.add_option('--yuv_frame_height', type='int', default=480,
                      help='Height of the YUV file\'s frames. Default: %default')
    parser.add_option('--yuv_file', type='string', default='output.yuv',
                      help='The YUV file to be decoded. Default: %default')
    parser.add_option('--stats_file', type='string', default='stats.txt',
                      help='The output stats file. Default: %default')
    parser.add_option('--png_working_dir', type='string', default='.',
                      help=('The directory for temporary PNG images to be stored '
                            'in when decoding from YUV before they\'re barcode '
                            'decoded. If using Windows and a Cygwin-compiled '
                            'zxing.exe, you should keep the default value to '
                            'avoid problems. Default: %default'))
    options, _args = parser.parse_args()
    return options
function_tokens: def _parse_args ( ) : usage = "usage: %prog [options]" parser = optparse . OptionParser ( usage = usage ) parser . add_option ( '--zxing_path' , type = 'string' , help = ( 'The path to where the zxing executable is located. ' 'If omitted, it will be assumed to be present in the ' 'PATH with the name zxing[.exe].' ) ) parser . add_option ( '--ffmpeg_path' , type = 'string' , help = ( 'The path to where the ffmpeg executable is located. ' 'If omitted, it will be assumed to be present in the ' 'PATH with the name ffmpeg[.exe].' ) ) parser . add_option ( '--yuv_frame_width' , type = 'int' , default = 640 , help = 'Width of the YUV file\'s frames. Default: %default' ) parser . add_option ( '--yuv_frame_height' , type = 'int' , default = 480 , help = 'Height of the YUV file\'s frames. Default: %default' ) parser . add_option ( '--yuv_file' , type = 'string' , default = 'output.yuv' , help = 'The YUV file to be decoded. Default: %default' ) parser . add_option ( '--stats_file' , type = 'string' , default = 'stats.txt' , help = 'The output stats file. Default: %default' ) parser . add_option ( '--png_working_dir' , type = 'string' , default = '.' , help = ( 'The directory for temporary PNG images to be stored ' 'in when decoding from YUV before they\'re barcode ' 'decoded. If using Windows and a Cygwin-compiled ' 'zxing.exe, you should keep the default value to ' 'avoid problems. Default: %default' ) ) options , _args = parser . parse_args ( ) return options