reduced puts usage

This commit is contained in:
Phuntsok Drak-pa 2018-11-21 10:31:42 +01:00
parent e6baa6296f
commit e509b7402f
1 changed files with 12 additions and 12 deletions

View File

@ -22,18 +22,18 @@
* \param[in] t_exit_code Code de sortie du processus
*/
void help(int t_exit_code) {
puts("Usage:");
puts("surfaces-unies -i path [-o path] [-options]\n");
puts("The default action is to compress the mandatory input image to a .su");
puts("file saved in the current directory.");
puts("The input image MUST be saved in the ppm format.");
puts("Options available:");
puts("-h --help\n\tdisplay the current message");
puts("-i --input\n\tpath to the input file (MANDATORY)");
puts("-o --output");
puts("\tpath to the output file (if the file already exists, it will be\n");
puts("-c --compress\n\tcompress the input file");
puts("-u --uncompress\n\tuncompresses the input file to the output file.");
puts("Usage:\n\
surfaces-unies -i path [-o path] [-options]\n\n\
The default action is to compress the mandatory input image to a .su\n\
file saved in the current directory.\n\
The input image MUST be saved in the ppm format.\n\
Options available:\n\
-h --help\n\tdisplay the current message\n\
-i --input\n\tpath to the input file (MANDATORY)\n\
-o --output\n\
\tpath to the output file (if the file already exists, it will be overwritten)\n\
-c --compress\n\tcompress the input file\n\
-u --uncompress\n\tuncompresses the input file to the output file.");
exit(t_exit_code);
}