summaryrefslogtreecommitdiffstats
path: root/lib/App/Hiveminder/Command/Delete.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Hiveminder/Command/Delete.pm')
-rw-r--r--lib/App/Hiveminder/Command/Delete.pm4
1 files changed, 2 insertions, 2 deletions
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)) };