From c3802a7f2b424abfb77c88104357877bf43ab2c6 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 22 Dec 2017 19:53:53 +0000 Subject: Add comand line option to set force and verbosity level. --- draklive | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'draklive') diff --git a/draklive b/draklive index 2ac70b7..d48e3d4 100755 --- a/draklive +++ b/draklive @@ -38,6 +38,12 @@ use MGA::DrakISO::BuildBoot; use MGA::DrakISO::BuildLoop; use MGA::DrakISO::BuildISO; +############################################################################### +# Globals +############################################################################### + +$::verbose = 1; + ############################################################################### # Actions ############################################################################### @@ -95,6 +101,7 @@ GetOptions( "config=s" => \$config_path, "settings=s" => \$settings_path, "define=s" => \%{$build_object->{settings}}, + "verbose=i" => \$::verbose, ) or Pod::Usage::pod2usage(); require standalone; @@ -163,6 +170,10 @@ draklive [options] --all-regions proceed with all configured regions + --verbose + set verbosity level to + defaults to 1 + Examples: draklive --clean -- cgit v1.2.1