mirror of
				https://github.com/viq/NewsBlur.git
				synced 2025-11-01 09:09:16 +00:00 
			
		
		
		
	Adding roles to zgrep util.
This commit is contained in:
		
							parent
							
								
									97be8b38a9
								
							
						
					
					
						commit
						508864b4cc
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -95,9 +95,11 @@ if __name__ == "__main__":
 | 
			
		|||
    parser = OptionParser()
 | 
			
		||||
    parser.add_option("-f", "--find", dest="find")
 | 
			
		||||
    parser.add_option("-p", "--path", dest="path")
 | 
			
		||||
    parser.add_option("-r", "--role", dest="role")
 | 
			
		||||
    (options, args) = parser.parse_args()
 | 
			
		||||
 | 
			
		||||
    path = options.path
 | 
			
		||||
    find = options.find
 | 
			
		||||
    role = options.role or 'app'
 | 
			
		||||
    command = "zgrep \"%s\"" % find
 | 
			
		||||
    main(role="app", command=command, path=path)
 | 
			
		||||
    main(role=role, command=command, path=path)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue