src/find.c
//prints the list of possible commands
prints the list of possible commands
prints the list of possible commands
void printHelp(){
    printf("\nThe find program allows you to find the number of occurrences of a set of strings within a group of files.\n");
	printf("To run the program use the following parameters:\n");
    printf("\nPrincipal execution:\n");
	printf("-\t[ --word|-w <wordfile> --input|-i <inputFile> ] : to print the report at the end of the run\n");
	printf("\nOptional parameters:\n");
	printf("-\t[ --output|-o <outputfile> ] : to save the report on a particular file\n");
	printf("-\t[ --exclude|-e <ext> ] : during the analysis phase it will be possible to ignore files with specific extensions\n");
	printf("-\t[ --verbose|-v ] : to view the analysis process\n");
	printf("\nOnce the report file has been generated, the find program can be used to retrieve the saved information with the following commands:\n");
	printf("-\t[ --report|-r <reportfile> --show <word> <n> ] : print the file list where the word <word> occurs at least <n> times\n");
	printf("-\t[ --report|-r <reportfile> --show <word> --file <file> ] : print all positions where the word <word> occurs in the <file>\n");
    printf("\nTo run some tests on the program:\n");
    printf("-\t[ --test ] : performs the tests contained in the test.c file\n\n");
}
void printHelp ( ) { printf ( " \n \n " ) ; printf ( " \n " ) ; printf ( " \n \n " ) ; printf ( " \t \n " ) ; printf ( " \n \n " ) ; printf ( " \t \n " ) ; printf ( " \t \n " ) ; printf ( " \t \n " ) ; printf ( " \n \n " ) ; printf ( " \t \n " ) ; printf ( " \t \n " ) ; printf ( " \n \n " ) ; printf ( " \t \n \n " ) ; }
prints the list of possible commands
prints the list of possible commands