Show
Ignore:
Timestamp:
04/24/08 14:09:47 (4 years ago)
Author:
khali
Message:

Unify and shorten the usage messages. The details can be found in
the man pages so no need to be verbose.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cget.c

    r5200 r5201  
    3838static void help(void) 
    3939{ 
    40         fprintf(stderr, "Syntax: i2cget [-f] [-y] I2CBUS CHIP-ADDRESS " 
    41                 "[DATA-ADDRESS [MODE]]\n" 
    42                 "        i2cget -V\n" 
    43                 "  MODE can be: 'b' (read byte data, default)\n" 
    44                 "               'w' (read word data)\n" 
    45                 "               'c' (write byte/read byte)\n" 
    46                 "  If DATA-ADDRESS is omitted, a single read byte command is " 
    47                 "issued\n" 
    48                 "  Append 'p' to MODE for PEC checking\n" 
    49                 "  I2CBUS is an integer\n"); 
     40        fprintf(stderr, 
     41                "Usage: i2cget [-f] [-y] I2CBUS CHIP-ADDRESS [DATA-ADDRESS [MODE]]\n" 
     42                "  I2CBUS is an integer or an I2C bus name\n" 
     43                "  ADDRESS is an integer (0x03 - 0x77)\n" 
     44                "  MODE is one of:\n" 
     45                "    b (read byte data, default)\n" 
     46                "    w (read word data)\n" 
     47                "    c (write byte/read byte)\n" 
     48                "    Append p for SMBus PEC\n"); 
    5049        exit(1); 
    5150}