def Parse(args):
    (options, args) = old_parser_args(args)
    if (options.similarity is None):
        options.similarity = git_get_branch_default('git-cl-similarity', 50)
    else:
        print(('Note: Saving similarity of %d%% in git config.' % options.similarity))
        git_set_branch_value('git-cl-similarity', options.similarity)
    options.similarity = max(0, min(options.similarity, 100))
    if (options.find_copies is None):
        options.find_copies = bool(git_get_branch_default('git-find-copies', True))
    else:
        git_set_branch_value('git-find-copies', int(options.find_copies))
    print(('Using %d%% similarity for rename/copy detection. Override with --similarity.' % options.similarity))
    return (options, args)
def Parse(args):
    (options, args) = old_parser_args(args)
    if (options.similarity is None):
        options.similarity = git_get_branch_default('git-cl-similarity', 50)
    else:
        print(('Note: Saving similarity of %d%% in git config.' % options.similarity))
        git_set_branch_value('git-cl-similarity', options.similarity)
    options.similarity = max(0, min(options.similarity, 100))
    if (options.find_copies is None):
        options.find_copies = bool(git_get_branch_default('git-find-copies', True))
    else:
        git_set_branch_value('git-find-copies', int(options.find_copies))
    print(('Using %d%% similarity for rename/copy detection. Override with --similarity.' % options.similarity))
    return (options, args)