2 * Copyright (C) 2004 Jesus Gimenez, Lluis Marquez and Senen Moya
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34 void printHelp(char *progname
)
36 fprintf(stderr
,"\n\nSVMTool++ v 1.1.6 - SVMTLearner\n\n");
37 fprintf(stderr
,"\nUsage : %s [options] <model> <config-file>", progname
);
38 fprintf(stderr
,"\noptions:\n");
39 fprintf(stderr
,"\n\t-V or -v:\tverbose");
40 fprintf(stderr
,"\n\nExample: %s -V config.svmt\n\n", progname
);
43 int options(int argc
,char *argv
[])
46 if ( argc
< 2 ) return -1;
48 for (int i
=1;i
<argc
-1;i
++)
50 if (strcmp(argv
[i
],"-v")!=0 || strcmp(argv
[i
],"-V")!=0)
61 int main(int argc
, char *argv
[])
65 int ret
= options(argc
,argv
);
73 L
.learnerRun(argv
[argc
-1]);