aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Module.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Module.pm')
-rw-r--r--lib/ManaTools/Module.pm25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/ManaTools/Module.pm b/lib/ManaTools/Module.pm
index a53b97ea..bf7eeb60 100644
--- a/lib/ManaTools/Module.pm
+++ b/lib/ManaTools/Module.pm
@@ -26,6 +26,7 @@ use Moose;
use ManaTools::Shared;
use ManaTools::Shared::Locales;
use ManaTools::Shared::Logging;
+use ManaTools::Shared::GUI::CommandLine;
=head1 VERSION
@@ -147,6 +148,30 @@ sub _loggerInitialize{
return ManaTools::Shared::Logging->new(ident => $self->name);
}
+
+#=============================================================
+
+=head2 commandline
+
+ commandline attribute defines the given command line, if
+ --help is passed help message is shown and the module is not
+ loaded.
+ See ManaTools::Shared::GUI::CommandLine for details and usage.
+
+=cut
+
+#=============================================================
+has 'commandline' => (
+ is => 'ro',
+ isa => 'ManaTools::Shared::GUI::CommandLine',
+ init_arg => undef,
+ default => sub {
+ return ManaTools::Shared::GUI::CommandLine->new_with_options();
+ }
+);
+
+
+
#=============================================================
=head1 SUBROUTINES/METHODS