returns parameter and answer

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@396 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
x04sa 2012-03-09 14:40:38 +00:00
parent d859736838
commit e66ab33ebd
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,6 @@
CFLAGS= -DC_ONLY
#FLAGS=-DVERBOSE
INCLUDES= -I../slsDetectorSoftware/commonFiles -I../slsDetectorSoftware/slsDetector -I ../slsDetectorSoftware/MySocketTCP -I../slsDetectorSoftware/usersFunctions -I../slsDetectorSoftware/multiSlsDetector
#LIBS=-L../TMythenDetector/bin/ -L$(QTDIR)/lib
LIBS= -L../slsDetectorSoftware/
LDFLAG= -lSlsDetector -lpthread

View File

@ -34,7 +34,10 @@ int main(int argc, char *argv[])
#elif HELP
action=HELP_ACTION;
#endif
#ifdef VERBOSE
for (int ia=0; ia<argc; ia++)
cout << argv[ia] << endl;
#endif
if (argc>1){
@ -109,6 +112,7 @@ int main(int argc, char *argv[])
answer=myCmd->executeLine(argc-1, argv, action);
} else {
answer=myCmd->executeLine(argc-1, argv+1, action);
cout << argv[1] << " " ;
}
cout << answer<< endl;