updated help message
This commit is contained in:
		
							parent
							
								
									d3ea93d13e
								
							
						
					
					
						commit
						94435ef305
					
				
							
								
								
									
										30
									
								
								src/main.cc
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								src/main.cc
									
									
									
									
									
								
							@ -38,18 +38,24 @@ using uvec = std::vector<uint32_t>;         // chaine encodée
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
void help() {
 | 
					void help() {
 | 
				
			||||||
  puts("Usage:");
 | 
					  puts("Usage:");
 | 
				
			||||||
  puts("lzw  [-options] [-i path] [-o path]");
 | 
					  puts("lzw  [-options] [-i path] [-o path]\n");
 | 
				
			||||||
  puts("\tThe default action is to compress the input file to a .lzw file");
 | 
					  puts("The default action is to compress the input file to a .lzw file");
 | 
				
			||||||
  puts("\tin which the directory in which the software is executed.");
 | 
					  puts("in which the directory in which the software is executed.");
 | 
				
			||||||
  puts("\tOptions available:");
 | 
					  puts("Options available:");
 | 
				
			||||||
  puts("\t-i\tpath to the input file (mandatory)");
 | 
					  puts("-h --help");
 | 
				
			||||||
  puts("\t-o\tpath to the output file (if the file already exists, it will");
 | 
					  puts("\tdisplay the current message");
 | 
				
			||||||
  puts("\t\tbe overwritten). Default: input path + \".lzw\"");
 | 
					  puts("-i --input");
 | 
				
			||||||
  puts("\t-c\tcompress the input file");
 | 
					  puts("\tpath to the input file (MANDATORY)");
 | 
				
			||||||
  puts("\t-u\tuncompresses the input file to the output file. If no output");
 | 
					  puts("-o --output");
 | 
				
			||||||
  puts("\t\tpath has not been entered and if the input file ends with ");
 | 
					  puts("\tpath to the output file (if the file already exists, it will be\n");
 | 
				
			||||||
  puts("\t\t\".lzw\", the extension \".lzw\" will be removed; otherwise, the ");
 | 
					  puts("\toverwritten). Default: input path + \".lzw\"");
 | 
				
			||||||
  puts("\t\textension \".uncompresed\" will be added");
 | 
					  puts("-c --compress");
 | 
				
			||||||
 | 
					  puts("\tcompress the input file");
 | 
				
			||||||
 | 
					  puts("-u --uncompress");
 | 
				
			||||||
 | 
					  puts("\tuncompresses the input file to the output file. If no output path");
 | 
				
			||||||
 | 
					  puts("\thas not been entered and if the input file ends with \".lzw\",");
 | 
				
			||||||
 | 
					  puts("\tthe extension \".lzw\" will be removed; otherwise, the extension");
 | 
				
			||||||
 | 
					  puts("\t\"_uncompresed\" will be added");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
std::tuple<string, string, bool> process_args(int t_argc, char *t_argv[]) {
 | 
					std::tuple<string, string, bool> process_args(int t_argc, char *t_argv[]) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user