From 866602c798c5679f0fbf4a526f7fcfc09db9c0c7 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 3 Feb 2015 18:37:35 +0200 Subject: [PATCH] Fix crash in gruntmaster-problem --- gruntmaster-problem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gruntmaster-problem b/gruntmaster-problem index d9dbb73..819b7ef 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -93,7 +93,7 @@ sub cmd_add{ sub cmd_set{ my $file; GetOptions ( 'file!' => \$file ); - my ($id, %values) = @_; + my ($id, %values) = @ARGV; %values = map { $_ => scalar read_file $values{$_} } keys %values if $file; $db->problem($id)->update(\%values); } -- 2.30.2