Commit ec460df5 authored by Réza Ansari's avatar Réza Ansari
Browse files

Correction bug decodage des arguments dans visi2dtacx.cc, Reza 11/03/2017

parent e7bfa426
......@@ -76,20 +76,24 @@ int main(int narg, char* arg[])
if (narg<10) return Usage(true);
int offa=0;
bool fgreorderfreq=false;
if (strcmp(arg[1],"-reorderfreq")==0) {
if ((narg-offa)<12) return Usage(true);
fgreorderfreq=true;
offa+=1;
}
bool FgTFM=false; // true -> create time-frequency maps of cross-correlations
sa_size_t TFMfbin=8;
if (strcmp(arg[1],"-tfm")==0) {
if ((narg-offa)<12) return Usage(true);
FgTFM=true;
TFMfbin=atoi(arg[2]);
if (TFMfbin<1) TFMfbin=8;
offa+=2;
bool fgdecoded=true;
while (fgdecoded && (narg>2)) {
if (strcmp(arg[1],"-reorderfreq")==0) {
fgreorderfreq=true; arg++; narg--;
}
else if (strcmp(arg[1],"-tfm")==0) {
if (narg<3) Usage(true);
FgTFM=true;
TFMfbin=atoi(arg[2]);
if (TFMfbin<1) TFMfbin=8;
arg+=2; narg-=2;
}
else fgdecoded=false;
}
if ((narg-offa)<10) return Usage(true);
string path5 = arg[offa+1];
string path6 = arg[offa+2];
int Imin,Imax,Istep=1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment