mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:52:45 +00:00 
			
		
		
		
	pgrep: Add --ignore-case as an alias for the -i option
				
					
				
			This commit is contained in:
		
							parent
							
								
									8706c88370
								
							
						
					
					
						commit
						f95e6ee849
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -5,13 +5,13 @@ pgrep - look up processes based on name | ||||||
| ## Synopsis | ## Synopsis | ||||||
| 
 | 
 | ||||||
| ```sh | ```sh | ||||||
| $ pgrep [-d delimiter] [-i] [--invert-match] <process-name> | $ pgrep [-d delimiter] [--ignore-case] [--invert-match] <process-name> | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Options | ## Options | ||||||
| 
 | 
 | ||||||
| * `-d`, `--delimiter`: Set the string used to delimit multiple pids | * `-d`, `--delimiter`: Set the string used to delimit multiple pids | ||||||
| * `-i`: Make matches case-insensitive | * `-i`, `--ignore-case`: Make matches case-insensitive | ||||||
| * `-v`, `--invert-match`: Select non-matching lines | * `-v`, `--invert-match`: Select non-matching lines | ||||||
| 
 | 
 | ||||||
| ## Arguments | ## Arguments | ||||||
|  |  | ||||||
|  | @ -27,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments args) | ||||||
| 
 | 
 | ||||||
|     Core::ArgsParser args_parser; |     Core::ArgsParser args_parser; | ||||||
|     args_parser.add_option(pid_delimiter, "Set the string used to delimit multiple pids", "delimiter", 'd', nullptr); |     args_parser.add_option(pid_delimiter, "Set the string used to delimit multiple pids", "delimiter", 'd', nullptr); | ||||||
|     args_parser.add_option(case_insensitive, "Make matches case-insensitive", nullptr, 'i'); |     args_parser.add_option(case_insensitive, "Make matches case-insensitive", "ignore-case", 'i'); | ||||||
|     args_parser.add_option(invert_match, "Select non-matching lines", "invert-match", 'v'); |     args_parser.add_option(invert_match, "Select non-matching lines", "invert-match", 'v'); | ||||||
|     args_parser.add_positional_argument(pattern, "Process name to search for", "process-name"); |     args_parser.add_positional_argument(pattern, "Process name to search for", "process-name"); | ||||||
|     args_parser.parse(args); |     args_parser.parse(args); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Ledbetter
						Tim Ledbetter