Ignore:
Timestamp:
12/20/03 13:46:17 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/merpp.cc

    r2711 r2728  
    6666    gLog << "     inputfile.txt:  Magic DC currents file." << endl;
    6767    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;
    7272    gLog << "     --start=yyyy-mm-dd/hh:mm:ss.mmm: Start event time for merpping report files" << endl;
    7373    gLog << "     --stop=yyyy-mm-dd/hh:mm:ss.mmm:  Stop  event time for merpping report files" << endl;
    7474    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;
    7676    gLog << "   REMARK: At the moment you can process a .raw _or_ a .rep file, only!" << endl << endl;
    7777}
     
    9999    MArgs arg(argc, argv);
    100100
    101     if (arg.HasOption("-?") || arg.HasOption("-h"))
     101    if (arg.HasOnly("-?") || arg.HasOnly("-h") || arg.HasOnly("--help"))
    102102    {
    103103        Usage();
     
    105105    }
    106106
    107     if (arg.HasOption("-a") && arg.GetIntAndRemove("-a")==0)
     107    if (arg.HasOnlyAndRemove("--no-colors") || arg.HasOnlyAndRemove("-a"))
    108108        gLog.SetNoColors();
    109109
    110110    const Int_t kComprlvl = arg.HasOption("-c") ? arg.GetIntAndRemove("-c") : 1;
    111     Bool_t kUpdate = arg.HasOption("-u") && arg.GetIntAndRemove("-u")==1;
     111    Bool_t kUpdate = arg.HasOnlyAndRemove("--update") || arg.HasOnlyAndRemove("-u");
    112112
    113113    gLog.SetDebugLevel(arg.HasOption("-v") ? arg.GetIntAndRemove("-v") : 2);
Note: See TracChangeset for help on using the changeset viewer.