mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Check if command input has at least 2 arguments
This commit is contained in:
		
							parent
							
								
									152ccd7fb1
								
							
						
					
					
						commit
						9a3c6d2dbe
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -31,7 +31,7 @@ static struct cmd_handler input_handlers[] = {
 | 
			
		|||
 | 
			
		||||
struct cmd_results *cmd_input(int argc, char **argv) {
 | 
			
		||||
	struct cmd_results *error = NULL;
 | 
			
		||||
	if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 1))) {
 | 
			
		||||
	if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 2))) {
 | 
			
		||||
		return error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue