diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-01-30 15:25:40 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-01-30 15:25:40 +0200 |
commit | 70922eff7611175811958174e0c5ba45948bb118 (patch) | |
tree | cc1df5206002bc340c85ad91cb468d1d597d0a3a | |
parent | 2b468fcf6e0c1af70ed3793b5b7190f63f9e55e9 (diff) | |
download | acmeman-70922eff7611175811958174e0c5ba45948bb118.tar.gz acmeman-70922eff7611175811958174e0c5ba45948bb118.tar.bz2 |
Apply command line options after loading configuration
-rwxr-xr-x | acmeman | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1,5 +1,5 @@ #! /usr/bin/perl -# Copyright (C) 2017 Sergey Poznyakoff <gray@gnu.org> +# Copyright (C) 2017, 2018 Sergey Poznyakoff <gray@gnu.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1006,13 +1006,6 @@ sub file_type_fixup { exit(1) if $err; } -if ($time_delta) { - $config->set(qw(core time-delta), $time_delta); -} -if ($check_alt_names) { - $config->set(qw(core check-alt-names), $check_alt_names); -} - my @domlist; @select{map { lc } @ARGV} = (1) x @ARGV; @@ -1033,6 +1026,12 @@ if ($config->success) { $obj->configure($config); $config->set(qw(core source), $obj); } + if ($time_delta) { + $config->set(qw(core time-delta), $time_delta); + } + if ($check_alt_names) { + $config->set(qw(core check-alt-names), $check_alt_names); + } } unless ($config->success) { |