OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/base.git] / src / Tools / eosPoint / eosPointICP / src / usage.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "../inc/config.h"
4
5 void
6 usage(char* thisProgram)
7 {
8     fprintf(stderr, "Usage: %s\n", thisProgram);
9     fprintf(stderr, "Options:\n");
10     fprintf(stderr, "    [-i[nput]            In                  (NULL      ).as(inFile              ) ] :Essential :Input: eosPoint\n");
11     fprintf(stderr, "    [-i[nput]t[ype]      InType              (2         ).as(Integer             ) ] :Optional  :eosPointType\n");
12     fprintf(stderr, "    [-i[nput]Mat[rix]    InMat               (NULL      ).as(inFile              ) ] :Optional  :Input: Matrix3D for initial\n");
13     fprintf(stderr, "    [-r[eference]        Ref                 (NULL      ).as(inFile              ) ] :Essential :Input: esoPoint\n");
14     fprintf(stderr, "    [-r[eference]t[ype]  RefType             (2         ).as(Integer             ) ] :Optional  :Input: esoPoint\n");
15     fprintf(stderr, "    [-r[eference]Mat[rix]RefMat              (NULL      ).as(inFile              ) ] :Optional  :Input: Matrix3D for initial\n");
16     fprintf(stderr, "    [-o[utput]           Out                 (NULL      ).as(outFile             ) ] :Essential :OutputDataFile\n");
17     fprintf(stderr, "    [-o[utput]t[ype]     OutType             (2         ).as(Integer             ) ] :Essential :OutputDataFile\n");
18     fprintf(stderr, "    [-EAMode             EAMode              (ZEYS      ).as(String              ) ] :Optional  :Euler Angle\n");
19     fprintf(stderr, "    [-R[atio]            Ratio               (1.0       ).as(Real                ) ] :Optional  :Mag\n");
20     fprintf(stderr, "    [-Iter[ationLimit]   IterationLimit      (10000     ).as(Integer             ) ] :Optional  :IteretionLimit\n");
21     fprintf(stderr, "    [-Pattern            Pattern             (10        ).as(Integer             ) ] :Optional  :Pickup Pattern\n");
22     fprintf(stderr, "    [-Thres[hold]        ScoreThreshold      (0.0       ).as(Real                ) ] :Optional  :Threshold\n");
23     fprintf(stderr, "    [-Pick[upPercent]    Pickup              (0.8       ).as(Real                ) ] :Optional  :Pickup Percent\n");
24     fprintf(stderr, "    [-debug              Debug               (0         ).as(Integer             ) ] :Optional  :Debug Mode\n");
25     fprintf(stderr, "    [-m[ode]             mode                (0         ).as(Integer             ) ] :Optional  :Mode\n");
26     fprintf(stderr, "    [-c[onfig]           configFile          (NULL      ).as(inFile              ) ] :Optional  :ConfigurationFile\n");
27     additionalUsage();
28 }
29
30 void
31 htmlBeforeUsage(char* thisProgram)
32 {
33     fprintf(stderr, "<HTML>\n");
34     fprintf(stderr, "<HEAD>\n");
35     fprintf(stderr, "<TITLE>%s</TITLE>\n", thisProgram);
36     fprintf(stderr, "</HEAD>\n");
37     fprintf(stderr, "<BODY>\n");
38     fprintf(stderr, "<H1>%s</H1>\n", thisProgram);
39     fprintf(stderr, "<H2>Usage</H2>\n");
40     fprintf(stderr, "<PRE>\n");
41 }
42
43 void
44 htmlAfterUsage(char* thisProgram)
45 {
46     fprintf(stderr, "</PRE>\n");
47     fprintf(stderr, "</BODY>\n");
48     fprintf(stderr, "</HTML>\n");
49 }