/[PAMELA software]/chewbacca/YodaProfiler/src/YodaProfiler.cpp
ViewVC logotype

Diff of /chewbacca/YodaProfiler/src/YodaProfiler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mocchiut, Wed Dec 3 19:57:53 2008 UTC revision 1.5 by mocchiut, Mon Dec 22 10:38:15 2008 UTC
# Line 24  void usage(){ Line 24  void usage(){
24    printf(" -v | --verbose  be verbose [default]\n");    printf(" -v | --verbose  be verbose [default]\n");
25    printf(" -s | --silent   print nothing on STDOUT\n");    printf(" -s | --silent   print nothing on STDOUT\n");
26    printf(" -g | --debug    be very verbose [default: no]\n");    printf(" -g | --debug    be very verbose [default: no]\n");
27    printf(" -p | --pedantic be strict in checks, exit with error if any problem is found [default: no]\n");    printf(" -p | --pedantic be strict in checks, exit with error if any problem is found [default: yes]\n");
28      printf(" -np | --no-pedantic do NOT be strict in checks, try to continue if any problem is found [default: no]\n");
29    printf(" -tag char       set the run tagging in _RUNID_GEN to \"char\" (four letters)[default = 'NONE']\n");    printf(" -tag char       set the run tagging in _RUNID_GEN to \"char\" (four letters)[default = 'NONE']\n");
30    printf(" -boot number    CPU boot number [default = taken from VarDump]\n");    printf(" -boot number    CPU boot number [default = taken from VarDump]\n");
31    printf(" -autoboot       if no VarDump found try to determine the BOOT number\n");    printf(" -autoboot       if no VarDump found try to determine the BOOT number\n");
# Line 35  void usage(){ Line 36  void usage(){
36    printf(" -dworbit number number is the downlink orbit number (to be used with non-standard names)\n");    printf(" -dworbit number number is the downlink orbit number (to be used with non-standard names)\n");
37    printf(" -static         use static path inside the DB instead of symbolic names\n");    printf(" -static         use static path inside the DB instead of symbolic names\n");
38    //  printf(" -keepenv        use environmental variables in the filenames\n");    //  printf(" -keepenv        use environmental variables in the filenames\n");
39    printf(" -k | --keepenv  use environmental variables in the filenames\n");    printf(" -k | --keepenv  use environmental variables in the filenames [default]\n");
40      printf(" -nk | --no-keepenv  use PAM_L0 or standard filenames\n");
41    //  printf(" -gpamela        shortcut to \"-clean 0 -obt0 1 -tsync 1 -no-autoboot -boot 1 -dworbit 1 -static\"\n");    //  printf(" -gpamela        shortcut to \"-clean 0 -obt0 1 -tsync 1 -no-autoboot -boot 1 -dworbit 1 -static\"\n");
42    printf(" -gpamela        shortcut to \"-clean 0 -obt0 1 -no-autoboot -dworbit 1 -static\"\n");    printf(" -gpamela        shortcut to \"-clean 0 -obt0 1 -no-autoboot -dworbit 1 -static\"\n");
43    printf(" -clean number   number in seconds after which the fragment table\n");    printf(" -clean number   number in seconds after which the fragment table\n");
# Line 107  int main(int numinp, char *inps[]){ Line 109  int main(int numinp, char *inps[]){
109    //        //    
110    Bool_t chewbacca = false;    Bool_t chewbacca = false;
111    Bool_t staticp = false;    Bool_t staticp = false;
112    Bool_t keepenv = false;    Bool_t keepenv = true;
113    Bool_t beverbose = true;    Bool_t beverbose = true;
114    Bool_t debug = false;    Bool_t debug = false;
115    Bool_t autoboot = true;    Bool_t autoboot = true;
# Line 128  int main(int numinp, char *inps[]){ Line 130  int main(int numinp, char *inps[]){
130    //    //
131    Bool_t check = false;    Bool_t check = false;
132    //    //
133    Bool_t pedantic = false;    Bool_t pedantic = true;
134    //    //
135    Int_t i = 0;    Int_t i = 0;
136    //    //
# Line 204  int main(int numinp, char *inps[]){ Line 206  int main(int numinp, char *inps[]){
206        if ( !strcmp(inps[i],"-k") || !strcmp(inps[i],"--keepenv") ) {        if ( !strcmp(inps[i],"-k") || !strcmp(inps[i],"--keepenv") ) {
207          keepenv = true;          keepenv = true;
208        };        };
209          if ( !strcmp(inps[i],"-nk") || !strcmp(inps[i],"--no-keepenv") ) {
210            keepenv = false;
211          };
212        if ( !strcmp(inps[i],"-autoboot") ) {        if ( !strcmp(inps[i],"-autoboot") ) {
213          autoboot = true;          autoboot = true;
214        };        };
# Line 300  int main(int numinp, char *inps[]){ Line 305  int main(int numinp, char *inps[]){
305        //        //
306        if ( !strcmp(inps[i],"-p") || !strcmp(inps[i],"--pedantic") ) pedantic = true;        if ( !strcmp(inps[i],"-p") || !strcmp(inps[i],"--pedantic") ) pedantic = true;
307        //        //
308          if ( !strcmp(inps[i],"-np") || !strcmp(inps[i],"--no-pedantic") ) pedantic = false;
309          //
310        if ( !strcmp(inps[i],"-nofrag") ) nofrag = true;        if ( !strcmp(inps[i],"-nofrag") ) nofrag = true;
311        //        //
312        if ( !strcmp(inps[i],"-check") ) check = true;        if ( !strcmp(inps[i],"-check") ) check = true;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23