Commit 9349157a by Chloe Dequeker

tweak in print_usage

parent df933e01
......@@ -28,12 +28,18 @@ void print_usage() {
" If nothing is specified, the current directory is used\n"
"<-pose>............Desired conformation. Default will compute all conformations\n"
"<--atom-res>.......If specified, will computed the interface at atom level\n"
"<-HCMD2>...........Means that the docking file is in the HCMD2 MAXDo format\n"
"<-MAXDo>...........Means that the docking file is in the original MAXDo format\n"
"<-noOutput>........Will prevent the program to output the docking interface\n"
" Useful if you only want to use the '-outputPDB' option\n"
"<--force/-f>.......Will force the computation of the pause even in case of\n"
" huge number of clashes (threshold defined in struct.h)\n"
"--\n"
"Leaving this option blank means that the default format for the docking file\n"
"will be used.\n"
"<-HCMD2>...........Means that the docking file is in the HCMD2 MAXDo format\n"
"OR\n"
"<-MAXDo>...........Means that the docking file is in the original MAXDo format\n"
"OR\n"
"<-HEX>.............Means that the docking file is in the HEX format\n"
);
}
......@@ -145,6 +151,13 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
}
}
if(MAXDo + HCMD2 + HEX > 1){
fprintf(stderr,"You must choose only one mode out of the three 'MAXDo', 'HCMD2' and 'HEX'\n");
if(!print_help)
print_usage();
exit(EXIT_SUCCESS);
}
if(dockingFile == NULL && !complexPDB){
fprintf(stderr,"The docking file has to be provided\n\n");
if(!print_help)
......
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