Simpler, why not
This commit is contained in:
		
							parent
							
								
									3196fe9678
								
							
						
					
					
						commit
						bb758adc2e
					
				
					 1 changed files with 2 additions and 10 deletions
				
			
		
							
								
								
									
										12
									
								
								bin/main.c
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								bin/main.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -37,17 +37,9 @@ static void usage(int argc, char **argv, const char *message, ...) {
 | 
			
		|||
 | 
			
		||||
    for (i=0; commands[i].name; i++) {
 | 
			
		||||
        if (i == 0) {
 | 
			
		||||
            fprintf(stderr, "usage: %s %s\n", argv[0], commands[i].name);
 | 
			
		||||
            fprintf(stderr, "usage: %s %s ...\n", argv[0], commands[i].name);
 | 
			
		||||
        } else {
 | 
			
		||||
            int x, len = strlen(argv[0]);
 | 
			
		||||
 | 
			
		||||
            fprintf(stderr, "       ");
 | 
			
		||||
 | 
			
		||||
            for (x=0; x<len; x++) {
 | 
			
		||||
                fprintf(stderr, " ");
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            fprintf(stderr, " %s ...\n", commands[i].name);
 | 
			
		||||
            fprintf(stderr, "       %s %s ...\n", argv[0], commands[i].name);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue