| 
					
				 | 
			
			
				@@ -110,7 +110,7 @@ class PwmanCli(cmd.Cmd): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if argsgiven == 1: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             length = tools.getinput("Password length (default 7): ", "7") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            length = int(length) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            length = len(length) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             password, dumpme = generator.generate_password(length, length, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                            True, leetify, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                            numerics, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -122,8 +122,10 @@ class PwmanCli(cmd.Cmd): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                      tools._defaultwidth, False) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if len(password) == 0: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             length = tools.getinput("Password length (default 7): ", "7") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if length: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             length = int(length) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        else:  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            length = 7 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             (password, dumpme) = generator.generate_password(length, length, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                              True, leetify, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                              numerics, 
			 |