summaryrefslogtreecommitdiffstats
path: root/lib/App/Hiveminder/Command/Create.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Hiveminder/Command/Create.pm')
-rw-r--r--lib/App/Hiveminder/Command/Create.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/App/Hiveminder/Command/Create.pm b/lib/App/Hiveminder/Command/Create.pm
index 25b1a0b..fd25429 100644
--- a/lib/App/Hiveminder/Command/Create.pm
+++ b/lib/App/Hiveminder/Command/Create.pm
@@ -14,10 +14,9 @@ App::Hiveminder::Command::Create - Create a new task
sub command_names { qw/create c/ }
sub command {
- my ($self, $args) = @_;
- $args = join " ", @$args;
+ my $self = shift;
- my $text = get_text_from_editor_or_cmdline($args);
+ my $text = get_text_from_editor_or_cmdline(@_);
return '' if $text eq '';
my @text = split "\n", $text;