diff options
Diffstat (limited to 'lib/Sietima/CmdLine.pm')
-rw-r--r-- | lib/Sietima/CmdLine.pm | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/Sietima/CmdLine.pm b/lib/Sietima/CmdLine.pm index 98805f9..6c24834 100644 --- a/lib/Sietima/CmdLine.pm +++ b/lib/Sietima/CmdLine.pm @@ -28,9 +28,7 @@ use namespace::clean; This class simplifies the creation of a L<< C<Sietima> >> object, and uses L<< C<App::Spec> >> to provide a command-line interface to it. -=head1 ATTRIBUTES - -=head2 C<sietima> +=attr C<sietima> Required, an instance of L<< C<Sietima> >>. You can either construct it yourself, or use the L<simplified building provided by the @@ -44,7 +42,7 @@ has sietima => ( isa => SietimaObj, ); -=head2 C<extra_spec> +=attr C<extra_spec> Optional hashref. Used inside L<< /C<app_spec> >>. If you're not familiar with L<< C<App::Spec> >>, you probably don't want to touch @@ -58,9 +56,7 @@ has extra_spec => ( default => sub { +{} }, ); -=head1 METHODS - -=head2 C<new> +=method C<new> my $cmdline = Sietima::CmdLine->new({ sietima => Sietima->with_traits(qw(SubjectTag))->new({ @@ -96,7 +92,7 @@ sub BUILDARGS($class,@args) { return $args; } -=head2 C<app_spec> +=method C<app_spec> Returns an instance of L<< C<App::Spec> >>, built from the specification returned by calling L<< @@ -121,12 +117,12 @@ sub _build_app_spec($self) { }); } -=head2 C<runner> +=method C<runner> Returns an instance of L<< C<Sietima::Runner> >>, built from the L<< /C<app_spec> >>. -=head2 C<run> +=method C<run> Delegates to the L<< /C<runner> >>'s L<< C<run>|App::Spec::Run/run >> method. |