2019-05-22 23:21:57 +11:00
|
|
|
/*
|
|
|
|
* phytotron - outil de gestion des datas
|
|
|
|
*/
|
|
|
|
|
2019-05-22 18:50:25 +11:00
|
|
|
#include <stdio.h>
|
2019-05-22 23:21:57 +11:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int verbosity;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------- */
|
|
|
|
void help(int k)
|
|
|
|
{
|
|
|
|
puts("options : ");
|
|
|
|
puts("\t-K\tset the K parameter.");
|
|
|
|
puts("\t-v\tincrease verbosity.");
|
|
|
|
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------- */
|
2019-05-22 18:50:25 +11:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2019-05-22 23:21:57 +11:00
|
|
|
int opt, foo;
|
|
|
|
int K = 0;
|
|
|
|
// char ligne[100];
|
|
|
|
|
|
|
|
while ((opt = getopt(argc, argv, "hKv")) != -1) {
|
|
|
|
switch (opt) {
|
|
|
|
case 'h': help(0); break;
|
|
|
|
case 'K': K = atoi(optarg); break;
|
|
|
|
case 'v': verbosity++; break;
|
|
|
|
default: break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fprintf(stderr, "*** storage tool %s %s\n", __DATE__, __TIME__);
|
|
|
|
|
2019-05-22 18:50:25 +11:00
|
|
|
return 0;
|
|
|
|
}
|
2019-05-22 23:21:57 +11:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------- */
|
|
|
|
|