X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fmain.c;h=9d89c0106a3ed1e7afeb7d5cd23ad6d356ed1a98;hp=71bb1e8f75f4d8578913f0eb1b86ff68b1ae6ad1;hb=23234e3cf7be4d07c11b911d4ee9a86a99ef4e3e;hpb=88cb2747134127e1a5903fedba12cccc585ec906 diff --git a/src/main.c b/src/main.c index 71bb1e8..9d89c01 100644 --- a/src/main.c +++ b/src/main.c @@ -99,7 +99,9 @@ static void print_help() puts(_(" -u, --url=URL " "the URL of the psensor-server, example: http://hostname:3131")); - + puts(_(" --use-libatasmart " + "use atasmart library for disk monitoring " + "instead of hddtemp daemon")); puts(""); puts(_(" -d, --debug=LEVEL " @@ -347,7 +349,7 @@ static void log_init() } static struct option long_options[] = { - {"use_libatasmart", no_argument, 0, 0}, + {"use-libatasmart", no_argument, 0, 0}, {"version", no_argument, 0, 'v'}, {"help", no_argument, 0, 'h'}, {"url", required_argument, 0, 'u'}, @@ -414,7 +416,7 @@ int main(int argc, char **argv) &opti)) != -1) { switch (optc) { case 0: - if (!strcmp(long_options[opti].name, "use_libatasmart")) + if (!strcmp(long_options[opti].name, "use-libatasmart")) use_libatasmart = 1; break; case 'u':