def cmd(send, msg, args):
    """Find a path between two wikipedia articles.

    Syntax: {command} [article] [article]

    """
    parser = arguments.ArgParser(args['config'])
    parser.add_argument('first', nargs='?')
    parser.add_argument('second', nargs='?')
    try:
        cmdargs = parser.parse_args(msg)
    except arguments.ArgumentException as e:
        send(str(e))
        return
    if not cmdargs.first:
        cmdargs.first = get_article()
    else:
        if not check_article(cmdargs.first):
            send("%s isn't a valid wikipedia article, fetching a random one..." % cmdargs.first)
            cmdargs.first = get_article()
    if not cmdargs.second:
        cmdargs.second = get_article()
    else:
        if not check_article(cmdargs.second):
            send("%s isn't a valid wikipedia article, fetching a random one..." % cmdargs.second)
            cmdargs.second = get_article()

    path = gen_path(cmdargs)
    if path:
        send(path.replace('_', ' '))
    else:
        send("No path found between %s and %s. Do you need to add more links?" % (cmdargs.first.replace('_', ' '), cmdargs.second.replace('_', ' ')))
Find a path between two wikipedia articles.

    Syntax: {command} [article] [article]