Add version command line option
This commit is contained in:
		
							
								
								
									
										7
									
								
								qsgen2
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								qsgen2
									
									
									
									
									
								
							@@ -74,6 +74,13 @@ if (${debug}); then
 | 
				
			|||||||
    # exit
 | 
					    # exit
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [[ ${1} == "version" ]] || [[ ${1} == "-v" ]] || [[ ${1} == "--version" ]]; then
 | 
				
			||||||
 | 
					    echo "${purple}${QSGEN} ${VERSION}${end}"
 | 
				
			||||||
 | 
					    echo "${yellow}- Created by kekePower - 2018-2024${end}"
 | 
				
			||||||
 | 
					    echo "${yellow}- https://github.com/kekePower/qsgen2/${end}"
 | 
				
			||||||
 | 
					    exit
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ ${1} == "help" ]]; then
 | 
					if [[ ${1} == "help" ]]; then
 | 
				
			||||||
    echo "${yellow}${QSGEN} ${VERSION}${end}"
 | 
					    echo "${yellow}${QSGEN} ${VERSION}${end}"
 | 
				
			||||||
	echo "This is where I'll write the Help documentation."
 | 
						echo "This is where I'll write the Help documentation."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user