From 202892f2545eb4d4395fcf173439d8b53b632c34 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Sun, 3 May 2015 23:24:24 +0200 Subject: Added Shared functions to manage common command line options --- scripts/manaadduser | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/manaadduser b/scripts/manaadduser index 19d5e391..33465b63 100755 --- a/scripts/manaadduser +++ b/scripts/manaadduser @@ -17,16 +17,11 @@ # You should have received a copy of the GNU General Public License # along with ManaTools. If not, see . use ManaTools::Module::Users; +use ManaTools::Shared; use ManaTools::Shared::Locales; -use yui; -my $cmdline = new yui::YCommandLine; -my $locale_dir = undef; -my $pos = $cmdline->find("--locales-dir"); -if ($pos > 0) -{ - $locale_dir = $cmdline->arg($pos+1); -} + +my $locale_dir = ManaTools::Shared::custom_locale_dir(); my $loc = ManaTools::Shared::Locales->new( domain_name => 'manatools', dir_name => $locale_dir, -- cgit v1.2.1