Changeset 2728 for trunk/MagicSoft/Mars/merpp.cc
- Timestamp:
- 12/20/03 13:46:17 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/merpp.cc
r2711 r2728 66 66 gLog << " inputfile.txt: Magic DC currents file." << endl; 67 67 gLog << " ouputfile.root: Merpped root file." << endl; 68 gLog << " - a0: Do not use Ansii codes." << endl;69 gLog << " - u1: Update file." << endl;70 gLog << " - cn: Compression level n=1..9 [default=2]" << endl;71 gLog << " - vn: Verbosity level n [default=2]" << endl;68 gLog << " -c#: Compression level #=1..9 [default=2]" << endl; 69 gLog << " -v#: Verbosity level # [default=2]" << endl; 70 gLog << " -u, --update: Update file" << endl; 71 gLog << " -a, --no-colors: Do not use Ansii color codes" << endl; 72 72 gLog << " --start=yyyy-mm-dd/hh:mm:ss.mmm: Start event time for merpping report files" << endl; 73 73 gLog << " --stop=yyyy-mm-dd/hh:mm:ss.mmm: Stop event time for merpping report files" << endl; 74 74 gLog << " --run=#: Only merpp data corresponding to this run number" << endl; 75 gLog << " -? /-h:This help" << endl << endl;75 gLog << " -?, -h, --help: This help" << endl << endl; 76 76 gLog << " REMARK: At the moment you can process a .raw _or_ a .rep file, only!" << endl << endl; 77 77 } … … 99 99 MArgs arg(argc, argv); 100 100 101 if (arg.HasO ption("-?") || arg.HasOption("-h"))101 if (arg.HasOnly("-?") || arg.HasOnly("-h") || arg.HasOnly("--help")) 102 102 { 103 103 Usage(); … … 105 105 } 106 106 107 if (arg.HasO ption("-a") && arg.GetIntAndRemove("-a")==0)107 if (arg.HasOnlyAndRemove("--no-colors") || arg.HasOnlyAndRemove("-a")) 108 108 gLog.SetNoColors(); 109 109 110 110 const Int_t kComprlvl = arg.HasOption("-c") ? arg.GetIntAndRemove("-c") : 1; 111 Bool_t kUpdate = arg.HasO ption("-u") && arg.GetIntAndRemove("-u")==1;111 Bool_t kUpdate = arg.HasOnlyAndRemove("--update") || arg.HasOnlyAndRemove("-u"); 112 112 113 113 gLog.SetDebugLevel(arg.HasOption("-v") ? arg.GetIntAndRemove("-v") : 2);
Note:
See TracChangeset
for help on using the changeset viewer.