#include <stdlib.h>
#include "alloc-util.h"
+#include "main-func.h"
+#include "pretty-print.h"
#include "string-table.h"
-#include "terminal-util.h"
#include "util.h"
#include "virt.h"
assert_not_reached("Unhandled option");
}
- if (optind < argc) {
- log_error("%s takes no arguments.", program_invocation_short_name);
- return -EINVAL;
- }
+ if (optind < argc)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "%s takes no arguments.",
+ program_invocation_short_name);
return 1;
}
* to detect whether we are being run in a virtualized
* environment or not */
+ log_show_color(true);
log_parse_environment();
log_open();