diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-05-03 23:24:24 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-05-03 23:24:24 +0200 |
commit | 202892f2545eb4d4395fcf173439d8b53b632c34 (patch) | |
tree | 03a5149dcabf6c99bd26d10467559d410b267dc2 | |
parent | e9509621999064c403911257daf2d72cb9d6772e (diff) | |
download | manatools-202892f2545eb4d4395fcf173439d8b53b632c34.tar manatools-202892f2545eb4d4395fcf173439d8b53b632c34.tar.gz manatools-202892f2545eb4d4395fcf173439d8b53b632c34.tar.bz2 manatools-202892f2545eb4d4395fcf173439d8b53b632c34.tar.xz manatools-202892f2545eb4d4395fcf173439d8b53b632c34.zip |
Added Shared functions to manage common command line options
-rwxr-xr-x | scripts/manaadduser | 11 |
1 files 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 <http://www.gnu.org/licenses/>. 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, |