Changeset 4705

Show
Ignore:
Timestamp:
08/26/07 10:43:30 (6 years ago)
Author:
khali
Message:

Merge most of the usage help text into a single string. This is way
more efficient.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4704 r4705  
    6666  printf("  -c, --config-file     Specify a config file (default: %s)\n", 
    6767         DEFAULT_CONFIG_FILE); 
    68   printf("  -h, --help            Display this help text\n"); 
    69   printf("  -s, --set             Execute `set' statements too (root only)\n"); 
    70   printf("  -f, --fahrenheit      Show temperatures in degrees fahrenheit\n"); 
    71   printf("  -A, --no-adapter      Do not show adapter for each chip\n"); 
    72   printf("  -u                    Raw output (debugging only)\n"); 
    73   printf("  -v, --version         Display the program version\n"); 
    74   printf("\n"); 
    75   printf("Use `-' after `-c' to read the config file from stdin.\n"); 
    76   printf("If no chips are specified, all chip info will be printed.\n"); 
    77   printf("Example chip names:\n"); 
    78   printf("\tlm78-i2c-0-2d\t*-i2c-0-2d\n"); 
    79   printf("\tlm78-i2c-0-*\t*-i2c-0-*\n"); 
    80   printf("\tlm78-i2c-*-2d\t*-i2c-*-2d\n"); 
    81   printf("\tlm78-i2c-*-*\t*-i2c-*-*\n"); 
    82   printf("\tlm78-isa-0290\t*-isa-0290\n"); 
    83   printf("\tlm78-isa-*\t*-isa-*\n"); 
    84   printf("\tlm78-*\n"); 
     68  puts("  -h, --help            Display this help text\n" 
     69       "  -s, --set             Execute `set' statements too (root only)\n" 
     70       "  -f, --fahrenheit      Show temperatures in degrees fahrenheit\n" 
     71       "  -A, --no-adapter      Do not show adapter for each chip\n" 
     72       "  -u                    Raw output (debugging only)\n" 
     73       "  -v, --version         Display the program version\n" 
     74       "\n" 
     75       "Use `-' after `-c' to read the config file from stdin.\n" 
     76       "If no chips are specified, all chip info will be printed.\n" 
     77       "Example chip names:\n" 
     78       "\tlm78-i2c-0-2d\t*-i2c-0-2d\n" 
     79       "\tlm78-i2c-0-*\t*-i2c-0-*\n" 
     80       "\tlm78-i2c-*-2d\t*-i2c-*-2d\n" 
     81       "\tlm78-i2c-*-*\t*-i2c-*-*\n" 
     82       "\tlm78-isa-0290\t*-isa-0290\n" 
     83       "\tlm78-isa-*\t*-isa-*\n" 
     84       "\tlm78-*"); 
    8585} 
    8686