breakReads.c: Fix help and error messages.
The -o parameter is missing before the <OUTPUTFILE> in the printed help line.
Also use the actual program name instead of hard coding breakreads.
Add quotes around the filenames, in the "Error: can't open file"
error messages.
--- a/breakReads.c
+++ b/breakReads.c
@@ -107,25 +107,25 @@ int main(int argc, char **argv){
flag = PAIR;
}
else{
- printf("The usage: breakreads -i <INPUT_FILE> <OUTPUTFILE> <[SINGLE/PAIR]>\n");
+ printf("\nUsage: %s -i <INPUT_FILE> -o <OUTPUTFILE> <[SINGLE/PAIR]>\n\n", argv[0]);
exit(1);
}
}
if( inputflag == 0 || outputflag == 0){
- printf("The usage: breakreads -i <INPUT_FILE> <OUTPUTFILE> <[SINGLE/PAIR]>\n");
+ printf("\nUsage: %s -i <INPUT_FILE> -o <OUTPUTFILE> <[SINGLE/PAIR]>\n\n", argv[0]);
exit(1);
}
inputfile = fopen(inputfilename,"r");
if(inputfile==NULL) {
- printf("Error: can't open file %s.\n",inputfilename);
+ printf("Error: can't open file '%s'.\n",inputfilename);
exit(1);
}
out = fopen(outputfilename,"w");
if(out==NULL) {
- printf("Error: can't open file %s.\n",outputfilename);
+ printf("Error: can't open file '%s'.\n",outputfilename);
exit(1);
}