[Bps-public-commit] r12510 - in Prophet/branches/moose: .

sartak at bestpractical.com sartak at bestpractical.com
Sun May 18 11:13:17 EDT 2008


Author: sartak
Date: Sun May 18 11:13:17 2008
New Revision: 12510

Modified:
   Prophet/branches/moose/   (props changed)
   Prophet/branches/moose/lib/Prophet/CLI.pm

Log:
 r56314 at onn:  sartak | 2008-05-18 11:13:11 -0400
 Use 'handles' for deleting to the cli for args and app_handle


Modified: Prophet/branches/moose/lib/Prophet/CLI.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/CLI.pm	(original)
+++ Prophet/branches/moose/lib/Prophet/CLI.pm	Sun May 18 11:13:17 2008
@@ -269,7 +269,9 @@
 has cli => (
     is => 'rw',
     isa => 'Prophet::CLI',
-    weak_ref => 1);
+    weak_ref => 1,
+    handles => [qw/args app_handle/],
+);
 
 
 sub fatal_error {
@@ -280,14 +282,6 @@
 }
 
 
-sub args {
-    shift->cli->args(@_);
-}
-
-sub app_handle {
-    shift->cli->app_handle;
-}
-
 =head2 edit_text [text] -> text
 
 Filters the given text through the user's C<$EDITOR> using



More information about the Bps-public-commit mailing list