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