2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

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

more efficient.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4705 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-08-26 08:43:30 +00:00
parent ec8ba95b53
commit 5ba408a37f

View File

@@ -65,23 +65,23 @@ void print_long_help(void)
printf("Usage: %s [OPTION]... [CHIP]...\n",PROGRAM); printf("Usage: %s [OPTION]... [CHIP]...\n",PROGRAM);
printf(" -c, --config-file Specify a config file (default: %s)\n", printf(" -c, --config-file Specify a config file (default: %s)\n",
DEFAULT_CONFIG_FILE); DEFAULT_CONFIG_FILE);
printf(" -h, --help Display this help text\n"); puts(" -h, --help Display this help text\n"
printf(" -s, --set Execute `set' statements too (root only)\n"); " -s, --set Execute `set' statements too (root only)\n"
printf(" -f, --fahrenheit Show temperatures in degrees fahrenheit\n"); " -f, --fahrenheit Show temperatures in degrees fahrenheit\n"
printf(" -A, --no-adapter Do not show adapter for each chip\n"); " -A, --no-adapter Do not show adapter for each chip\n"
printf(" -u Raw output (debugging only)\n"); " -u Raw output (debugging only)\n"
printf(" -v, --version Display the program version\n"); " -v, --version Display the program version\n"
printf("\n"); "\n"
printf("Use `-' after `-c' to read the config file from stdin.\n"); "Use `-' after `-c' to read the config file from stdin.\n"
printf("If no chips are specified, all chip info will be printed.\n"); "If no chips are specified, all chip info will be printed.\n"
printf("Example chip names:\n"); "Example chip names:\n"
printf("\tlm78-i2c-0-2d\t*-i2c-0-2d\n"); "\tlm78-i2c-0-2d\t*-i2c-0-2d\n"
printf("\tlm78-i2c-0-*\t*-i2c-0-*\n"); "\tlm78-i2c-0-*\t*-i2c-0-*\n"
printf("\tlm78-i2c-*-2d\t*-i2c-*-2d\n"); "\tlm78-i2c-*-2d\t*-i2c-*-2d\n"
printf("\tlm78-i2c-*-*\t*-i2c-*-*\n"); "\tlm78-i2c-*-*\t*-i2c-*-*\n"
printf("\tlm78-isa-0290\t*-isa-0290\n"); "\tlm78-isa-0290\t*-isa-0290\n"
printf("\tlm78-isa-*\t*-isa-*\n"); "\tlm78-isa-*\t*-isa-*\n"
printf("\tlm78-*\n"); "\tlm78-*");
} }
void print_version(void) void print_version(void)