def parse_args(argv=None):
    """Parse command line options."""
    parser = ArgumentParser()
    parser.add_argument('--replay-file', dest="replay_file", type=str, required=True)

    options = parser.parse_args(argv)
    return options
def parse_args ( argv = None ) : parser = ArgumentParser ( ) parser . add_argument ( '--replay-file' , dest = "replay_file" , type = str , required = True ) options = parser . parse_args ( argv ) return options
Parse command line options.