aboutsummaryrefslogtreecommitdiffstats
path: root/fripost
diff options
context:
space:
mode:
Diffstat (limited to 'fripost')
-rwxr-xr-xfripost21
1 files changed, 10 insertions, 11 deletions
diff --git a/fripost b/fripost
index 161ef75..f250e6c 100755
--- a/fripost
+++ b/fripost
@@ -315,17 +315,6 @@ use Getopt::Long qw /:config noauto_abbrev no_ignore_case
use Pod::Usage;
use YAML::Syck;
-use Fripost::Schema;
-use Fripost::Commands::mkpass;
-use Fripost::Commands::add_user;
-use Fripost::Commands::search_user;
-use Fripost::Commands::user_passwd;
-use Fripost::Commands::add_domain;
-use Fripost::Commands::search_domain;
-use Fripost::Commands::add_alias;
-use Fripost::Commands::search_alias;
-
-
## Get global command line options
our $conf = LoadFile( catfile ($HOME, '.fripost.yml') );
@@ -352,6 +341,16 @@ GetOptions(
'g|goto' => \$conf->{goto},
) or pod2usage(2);
+require Fripost::Schema;
+require Fripost::Commands::mkpass;
+require Fripost::Commands::add_user;
+require Fripost::Commands::search_user;
+require Fripost::Commands::user_passwd;
+require Fripost::Commands::add_domain;
+require Fripost::Commands::search_domain;
+require Fripost::Commands::add_alias;
+require Fripost::Commands::search_alias;
+
## Set the default values
$conf->{server_host} //= 'ldap://127.0.0.1:389';