--- quicklook/tracker/flight/macros/readpedsig-main.cpp 2006/03/14 16:09:30 1.1 +++ quicklook/tracker/flight/macros/readpedsig-main.cpp 2006/03/21 15:54:05 1.2 @@ -18,20 +18,28 @@ TString FILE,OUTDIR=""; - if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || argc==1){ + if(argc>1){ + if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || argc==1){ + printf("Usage: readpedsig FILE OUTDIR \n"); + printf("\t FILE: path of the root file to analize (give at least this parameter) \n"); + printf("\t OUTDIR: output directory [default = same directory of the root file] \n"); + exit(1); + } + + if(argc>=2){ + for(int i=1; i=2){ - for(int i=1; i