Changeset 8683 for trunk/MagicSoft
- Timestamp:
- 08/20/07 16:03:06 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.cc
r8539 r8683 202 202 if (arg.GetNumArguments()!=1) 203 203 { 204 gLog << warn << "WARNING - Wrong number of arguments..." << endl; 204 205 Usage(); 205 206 return 2; -
trunk/MagicSoft/Mars/ganymed.cc
r8443 r8683 163 163 if (arg.GetNumArguments()!=1) 164 164 { 165 gLog << warn << "WARNING - Wrong number of arguments..." << endl; 165 166 Usage(); 166 167 return 2; -
trunk/MagicSoft/Mars/mars.cc
r8617 r8683 52 52 gLog << " sequence (datacenter default if omitted)." << endl << endl; 53 53 gLog << " Options:" << endl; 54 gLog << " --config=mars.rc: Change configuration file" << endl; 55 gLog << " <not yet implemented!>" << endl; 54 56 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; 59 58 } 60 59 … … 85 84 return 0xff; 86 85 86 MLog::RedirectErrorHandler(MLog::kColor); 87 87 88 // 88 89 // Evaluate arguments … … 93 94 StartUpMessage(); 94 95 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")) 96 100 { 97 101 Usage(); … … 115 119 if (arg.GetNumArguments()>2) 116 120 { 121 gLog << warn << "WARNING - Too many arguments..." << endl; 117 122 Usage(); 118 123 return 2; … … 122 127 // This is to make argv[i] more readable inside the code 123 128 // 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); 126 131 127 132 //if (!kIsSequence && !InflateRun(kFilename)) … … 183 188 return 0; 184 189 } 185 186 -
trunk/MagicSoft/Mars/showplot.cc
r8478 r8683 171 171 if (arg.GetNumArguments()<1 || arg.GetNumArguments()>2) 172 172 { 173 gLog << warn << "WARNING - Wrong number of arguments..." << endl; 173 174 Usage(); 174 175 return 2; … … 176 177 if (arg.GetNumArguments()==2 && !arg.GetArgumentStr(1).IsDigit()) 177 178 { 179 gLog << warn << "WARNING - First argument must not be a number..." << endl; 178 180 Usage(); 179 181 return 2; -
trunk/MagicSoft/Mars/sponde.cc
r8681 r8683 132 132 if (arg.GetNumArguments()<2 || arg.GetNumArguments()>3) 133 133 { 134 gLog << warn << "WARNING - Wrong number of arguments..." << endl; 134 135 Usage(); 135 136 return 2; -
trunk/MagicSoft/Mars/star.cc
r8539 r8683 145 145 if (arg.GetNumArguments()!=1) 146 146 { 147 gLog << warn << "WARNING - Wrong number of arguments..." << endl; 147 148 Usage(); 148 149 return 2;
Note:
See TracChangeset
for help on using the changeset viewer.