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' );