summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 19:53:53 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 20:39:20 +0000
commitc3802a7f2b424abfb77c88104357877bf43ab2c6 (patch)
tree1137e17f09bbde154094fb7b6be11138bc2af53e /draklive
parent2e7c611d1b25c6ccf99585089c9372bdd3701f88 (diff)
downloaddrakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar.gz
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar.bz2
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar.xz
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.zip
Add comand line option to set force and verbosity level.
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive11
1 files changed, 11 insertions, 0 deletions
diff --git a/draklive b/draklive
index 2ac70b7..d48e3d4 100755
--- a/draklive
+++ b/draklive
@@ -39,6 +39,12 @@ 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 <level>
+ set verbosity level to <level>
+ defaults to 1
+
Examples:
draklive --clean