chiark / gitweb /
log: make color/location logging optional
[elogind.git] / src / install.c
index e3db63769fc4a961564975aad601157151c5b2fe..479a38c80a881d5fbe1cca91cffbcad70c07d6be 100644 (file)
@@ -60,6 +60,7 @@ Hashmap *will_install = NULL, *have_installed = NULL;
 static int help(void) {
 
         printf("%s [options]\n\n"
+               "Install init system units.\n\n"
                "  -h --help        Show this help\n"
                "     --force       Override existing links\n"
                "     --system      Install into system\n"
@@ -69,7 +70,7 @@ static int help(void) {
                "  enable [NAME...]    Enable one or more units\n"
                "  disable [NAME...]   Disable one or more units\n"
                "  test [NAME...]      Test whether any of the specified units are enabled\n",
-               __progname);
+               program_invocation_short_name);
 
         return 0;
 }
@@ -532,8 +533,6 @@ int main(int argc, char *argv[]) {
 
         zero(paths);
 
-        log_set_target(LOG_TARGET_CONSOLE);
-        log_set_max_level(LOG_INFO);
         log_parse_environment();
 
         if ((r = parse_argv(argc, argv)) < 0)