From e63ecb6cec0021948fea4c09925d4b7511d39eff Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 9 May 2008 02:33:48 -0500 Subject: have the base command class pass in the arguments to the command as a list instead of an arrayref --- lib/App/Hiveminder/Command/Delete.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/App/Hiveminder/Command/Delete.pm') diff --git a/lib/App/Hiveminder/Command/Delete.pm b/lib/App/Hiveminder/Command/Delete.pm index 4c105b7..33552eb 100644 --- a/lib/App/Hiveminder/Command/Delete.pm +++ b/lib/App/Hiveminder/Command/Delete.pm @@ -13,10 +13,10 @@ App::Hiveminder::Command::Delete - Delete a task by locator sub command_names { qw/delete rm del/ } sub command { - my ($self, $args) = @_; + my $self = shift; # XXX: offer an interactive mode here, possibly my $ret = ''; - for my $locator (@$args) { + for my $locator (@_) { my $desc = display_tasks($self->hm->read_task($locator)); $ret .= "Deleted $desc\n"; eval { $self->hm->delete('Task', id => $self->hm->loc2id($locator)) }; -- cgit v1.2.3-54-g00ecf