Commit 4dd3f7fb authored by Francesc Guasch's avatar Francesc Guasch
Browse files

GetOptions won't reach rvd front

parent 2b4934e5
......@@ -68,17 +68,10 @@ setlocale(LC_CTYPE, $old_locale);
plugin I18N => {namespace => 'Ravada::I18N', default => 'en'};
plugin 'RenderFile';
GetOptions(
'config=s' => \$FILE_CONFIG
,help => \$help
) or exit;
if ($help) {
print "$0 [--help] [--config=$FILE_CONFIG]\n";
exit;
}
our $RAVADA = Ravada::Front->new(config => $FILE_CONFIG);
my %config;
%config = ( config => $FILE_CONFIG ) if $FILE_CONFIG && -e $FILE_CONFIG;
our $RAVADA = Ravada::Front->new(%config);
our $USER;
# TODO: get those from the config file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment