+#include "test-tool.h"
 #include "cache.h"
 #include "mergesort.h"
 
        return strcmp(x->text, y->text);
 }
 
-int main(int argc, char **argv)
+int cmd__mergesort(int argc, const char **argv)
 {
        struct line *line, *p = NULL, *lines = NULL;
        struct strbuf sb = STRBUF_INIT;