This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2007-03-23 14:25:07 +01:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "godist.h"
|
|
|
|
|
|
|
|
extern char *optarg;
|
|
|
|
extern int optind, opterr, optopt;
|
|
|
|
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
#include <getopt.h>
|
|
|
|
|
|
|
|
void print_help() {
|
|
|
|
printf("go-distance 0.1.0\n\n");
|
|
|
|
printf("Usage: go-distance [hr] <go-terms>\n\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int i;
|
2007-04-26 20:54:34 +02:00
|
|
|
char *dimension[MAX_NODES];
|
|
|
|
|
2007-03-23 14:25:07 +01:00
|
|
|
while ((i = getopt(argc, argv, "h")) != -1) {
|
|
|
|
switch(i) {
|
|
|
|
case 104:
|
|
|
|
print_help();
|
|
|
|
exit(0);
|
|
|
|
break;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
godist_init();
|
2007-04-26 20:54:34 +02:00
|
|
|
|
|
|
|
build_dataset();
|
2007-03-23 14:25:07 +01:00
|
|
|
godist_exit();
|
|
|
|
}
|
|
|
|
|