Fix: correctly handle '-h' (or --help)
Change-Id: I57ea8c339bd81773017803987a72206b0de0ba0e
This commit is contained in:
		 Grégory Starck
					Grégory Starck
				
			
				
					committed by
					
						 Alexandre Viau
						Alexandre Viau
					
				
			
			
				
	
			
			
			 Alexandre Viau
						Alexandre Viau
					
				
			
						parent
						
							b277ca969f
						
					
				
				
					commit
					f6828f8205
				
			| @@ -137,7 +137,7 @@ class SurveilShell(object): | ||||
|  | ||||
|         # Handle top-level --help/-h before attempting to parse | ||||
|         # a command off the command line | ||||
|         if not args and options.help or not argv: | ||||
|         if not argv or ('-h' in args or '--help' in args): | ||||
|             self.do_help(options) | ||||
|             return 0 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user