Changeset 8683 for trunk


Ignore:
Timestamp:
08/20/07 16:03:06 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

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

    r8539 r8683  
    202202    if (arg.GetNumArguments()!=1)
    203203    {
     204        gLog << warn << "WARNING - Wrong number of arguments..." << endl;
    204205        Usage();
    205206        return 2;
  • trunk/MagicSoft/Mars/ganymed.cc

    r8443 r8683  
    163163    if (arg.GetNumArguments()!=1)
    164164    {
     165        gLog << warn << "WARNING - Wrong number of arguments..." << endl;
    165166        Usage();
    166167        return 2;
  • trunk/MagicSoft/Mars/mars.cc

    r8617 r8683  
    5252    gLog << "             sequence (datacenter default if omitted)." << endl << endl;
    5353    gLog << " Options:" << endl;
     54    gLog << "   --config=mars.rc:         Change configuration file" << endl;
     55    gLog << "                             <not yet implemented!>" << endl;
    5456    gLog.Usage();
    55     gLog << "   --config=mars.rc: Change configuration file" << endl;
    56     gLog << "                     <not yet implemented!>" << endl;
    57     gLog.Usage();
    58     gLog << "     -?/-h: This help" << endl << endl;
     57    gLog << "   -?/-h:                    This help" << endl << endl;
    5958}
    6059
     
    8584        return 0xff;
    8685
     86    MLog::RedirectErrorHandler(MLog::kColor);
     87
    8788    //
    8889    // Evaluate arguments
     
    9394    StartUpMessage();
    9495
    95     if (arg.HasOption("-?") || arg.HasOption("-h") || arg.GetNumArguments()>1)
     96    if (arg.HasOnly("-V") || arg.HasOnly("--version"))
     97        return 0;
     98
     99    if (arg.HasOnly("-?") || arg.HasOnly("-h") || arg.HasOnly("--help"))
    96100    {
    97101        Usage();
     
    115119    if (arg.GetNumArguments()>2)
    116120    {
     121        gLog << warn << "WARNING - Too many arguments..." << endl;
    117122        Usage();
    118123        return 2;
     
    122127    // This is to make argv[i] more readable inside the code
    123128    //
    124     TString kFilename = arg.GetArgumentStr(0);
    125     TString kInpathD  = arg.GetArgumentStr(1);
     129    const TString kFilename = arg.GetArgumentStr(0);
     130    const TString kInpathD  = arg.GetArgumentStr(1);
    126131
    127132    //if (!kIsSequence && !InflateRun(kFilename))
     
    183188    return 0;
    184189}
    185  
    186 
  • trunk/MagicSoft/Mars/showplot.cc

    r8478 r8683  
    171171    if (arg.GetNumArguments()<1 || arg.GetNumArguments()>2)
    172172    {
     173        gLog << warn << "WARNING - Wrong number of arguments..." << endl;
    173174        Usage();
    174175        return 2;
     
    176177    if (arg.GetNumArguments()==2 && !arg.GetArgumentStr(1).IsDigit())
    177178    {
     179        gLog << warn << "WARNING - First argument must not be a number..." << endl;
    178180        Usage();
    179181        return 2;
  • trunk/MagicSoft/Mars/sponde.cc

    r8681 r8683  
    132132    if (arg.GetNumArguments()<2 || arg.GetNumArguments()>3)
    133133    {
     134        gLog << warn << "WARNING - Wrong number of arguments..." << endl;
    134135        Usage();
    135136        return 2;
  • trunk/MagicSoft/Mars/star.cc

    r8539 r8683  
    145145    if (arg.GetNumArguments()!=1)
    146146    {
     147        gLog << warn << "WARNING - Wrong number of arguments..." << endl;
    147148        Usage();
    148149        return 2;
Note: See TracChangeset for help on using the changeset viewer.