From 02fa08c6ad75b8363b79d4e7d0ceccade8bb953c Mon Sep 17 00:00:00 2001 From: dataking Date: Tue, 25 Oct 2016 15:30:00 -0700 Subject: [PATCH] usage tweaks --- lynis_report.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lynis_report.pl b/lynis_report.pl index 18257aa..10320db 100755 --- a/lynis_report.pl +++ b/lynis_report.pl @@ -22,7 +22,8 @@ GetOptions( 'p|pdf' => \$pdf, ); -if ($help) { &usage; } +&usage if ($help); +&usage if (!$output); my %to_bool = ( 0 => 'false', 1 => 'true' ); my %vm_mode = ( 0 => 'false', 1 => 'guest', 2 => 'host' );