mirror of
				https://github.com/therootcompany/keypairs
				synced 2025-11-04 07:12:48 +00:00 
			
		
		
		
	bugfix no subcommand
This commit is contained in:
		
							parent
							
								
									d4f18f8c78
								
							
						
					
					
						commit
						7e6fd174ef
					
				@ -51,9 +51,9 @@ func ver() string {
 | 
			
		||||
func main() {
 | 
			
		||||
	args := os.Args[:]
 | 
			
		||||
 | 
			
		||||
	if "help" == args[1] {
 | 
			
		||||
	if len(args) < 2 || "help" == args[1] {
 | 
			
		||||
		// top-level help
 | 
			
		||||
		if 2 == len(args) {
 | 
			
		||||
		if len(args) <= 2 {
 | 
			
		||||
			usage()
 | 
			
		||||
			os.Exit(0)
 | 
			
		||||
			return
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user