Changeset 5206

Show
Ignore:
Timestamp:
04/24/08 14:37:35 (7 months ago)
Author:
khali
Message:

Unknown options are fatal, so label them error rather than warning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c-tools/trunk/tools/i2cdetect.c

    r5202 r5206  
    229229                        break; 
    230230                default: 
    231                         fprintf(stderr, "Warning: Unsupported flag
    232                                 "\"-%c\"!\n", argv[1+flags][1]); 
     231                        fprintf(stderr, "Error: Unsupported option
     232                                "\"%s\"!\n", argv[1+flags]); 
    233233                        help(); 
    234234                        exit(1); 
  • i2c-tools/trunk/tools/i2cdump.c

    r5204 r5206  
    6969                case 'y': yes = 1; break; 
    7070                default: 
    71                         fprintf(stderr, "Warning: Unsupported flag
    72                                 "\"-%c\"!\n", argv[1+flags][1]); 
     71                        fprintf(stderr, "Error: Unsupported option
     72                                "\"%s\"!\n", argv[1+flags]); 
    7373                        help(); 
    7474                        exit(1); 
  • i2c-tools/trunk/tools/i2cget.c

    r5204 r5206  
    170170                case 'y': yes = 1; break; 
    171171                default: 
    172                         fprintf(stderr, "Warning: Unsupported flag
    173                                 "\"-%c\"!\n", argv[1+flags][1]); 
     172                        fprintf(stderr, "Error: Unsupported option
     173                                "\"%s\"!\n", argv[1+flags]); 
    174174                        help(); 
    175175                        exit(1); 
  • i2c-tools/trunk/tools/i2cset.c

    r5204 r5206  
    6464                case 'y': yes = 1; break; 
    6565                default: 
    66                         fprintf(stderr, "Warning: Unsupported flag
    67                                 "\"-%c\"!\n", argv[1+flags][1]); 
     66                        fprintf(stderr, "Error: Unsupported option
     67                                "\"%s\"!\n", argv[1+flags]); 
    6868                        help(); 
    6969                        exit(1);