Update usage and add actual d-parsing to touch(1)
This commit is contained in:
		
							
								
								
									
										5
									
								
								touch.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								touch.c
									
									
									
									
									
								
							@@ -102,7 +102,7 @@ parsetime(char *str, time_t current)
 | 
			
		||||
static void
 | 
			
		||||
usage(void)
 | 
			
		||||
{
 | 
			
		||||
	eprintf("usage: %s [-acm] [-r ref_file | -t timestamp] file ...\n", argv0);
 | 
			
		||||
	eprintf("usage: %s [-acm] [-d time | -r ref_file | -t time | -T time] file ...\n", argv0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
@@ -119,6 +119,9 @@ main(int argc, char *argv[])
 | 
			
		||||
	case 'c':
 | 
			
		||||
		cflag = 1;
 | 
			
		||||
		break;
 | 
			
		||||
	case 'd':
 | 
			
		||||
		t = parsetime(EARGF(usage()), t);
 | 
			
		||||
		break;
 | 
			
		||||
	case 'm':
 | 
			
		||||
		mflag = 1;
 | 
			
		||||
		break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user