Source
xxxxxxxxxx
158
158
ARG_CISTSR = "-c",
159
159
ARG_CISTSR2 = "--cachedimagesizetoscreenresolution",
160
160
ARG_PIXELS1 = "-p",
161
161
ARG_PIXELS2 = "--pixels",
162
162
#if ! defined(WITHOUT_DBUS)
163
163
ARG_CASAPY = PlotMSDBusApp::APP_CASAPY_SWITCH,
164
164
ARG_LOGFILE = PlotMSDBusApp::APP_LOGFILENAME_SWITCH,
165
165
ARG_LOGFILTER = PlotMSDBusApp::APP_LOGFILTER_SWITCH,
166
166
#else
167
167
casapy_address = "",
168
+
ARG_LOGFILE = "--logfilename",
168
169
ARG_SERVER = grpcPlotMS::APP_SERVER_SWITCH,
169
170
#endif
170
171
ARG_DEBUG1 = "-d",
171
172
ARG_DEBUG2 = "--debug",
172
173
ARG_NOPOPUPS = "--nopopups",
173
174
ARG_SHOWGUI = "--nogui";
174
175
175
176
//
176
177
// configure datapath for casacore and colormaps...
177
178
//
300
301
// Don't advertise this switch...
301
302
<< "\n* " << ARG_CASAPY << "\n "
302
303
<< "Sets up application to be controlled by casapy."
303
304
*/
304
305
305
306
<< "\n* " << ARG_LOGFILE << "=[filename]\n "
306
307
<< "Sets the log file location (blank to use global)."
307
308
308
309
<< "\n* " << ARG_LOGFILTER << "=[priority]\n "
309
310
<< "Sets the log minimum priority filter."
311
+
#else
312
+
<< "\n* " << ARG_LOGFILE << "=[filename]\n "
313
+
<< "Sets the log file location (blank to use global)."
314
+
310
315
#endif
311
316
<< "\n* " << ARG_DEBUG1 << " or " << ARG_DEBUG2 << "\n "
312
317
<< "Turn on debugging log messages."
313
318
314
319
<< "\n* " << ARG_SHOWGUI << "\n "
315
320
<< "Run without showing anything on the screen"
316
321
317
322
<< endl;
318
323
return 0;
319
324
}
366
371
cout << "Please type 'casaplotms --help' for more info" << endl;
367
372
return 0;
368
373
}
369
374
}
370
375
371
376
if(arg2[arg2.size() - 1] == '=') arg2.erase(arg2.size() - 1);
372
377
373
378
if(arg2 == ARG_VIS) ms = arg3;
374
379
else if(arg2 == ARG_XAXIS) xaxis = arg3;
375
380
else if(arg2 == ARG_YAXIS) yaxis = arg3;
376
-
#if ! defined(WITHOUT_DBUS)
377
381
else if(arg2 == ARG_LOGFILE) logfile = arg3;
382
+
#if ! defined(WITHOUT_DBUS)
378
383
else if(arg2 == ARG_LOGFILTER) logfilter = arg3;
379
384
#endif
380
385
else {
381
386
bool found = false;
382
387
for(unsigned int i = 0; !found && i < selectFields.size(); i++) {
383
388
if(PMS::strEq(arg2, selectFields[i], true)) {
384
389
select.setValue(PlotMSSelection::field(selectFields[i]),
385
390
arg3);
386
391
found = true;
387
392
}