summaryrefslogtreecommitdiff
path: root/bucky2/bin/move-file
diff options
context:
space:
mode:
Diffstat (limited to 'bucky2/bin/move-file')
-rwxr-xr-xbucky2/bin/move-file6
1 files changed, 3 insertions, 3 deletions
diff --git a/bucky2/bin/move-file b/bucky2/bin/move-file
index 7c9e603..bd6dc48 100755
--- a/bucky2/bin/move-file
+++ b/bucky2/bin/move-file
@@ -4,15 +4,15 @@ use lib "../lib";
use Bucky;
if (scalar(@ARGV) < 2) {
- print "usage: move-file id thread\n";
+ print "usage: move-file thread-id comment-id\n";
exit(1);
}
my $bucky = new Bucky;
$bucky->db->update_by_id('file', {
- "id" => $ARGV[0],
+ "id" => $ARGV[1],
"record" => {
- "thread" => $ARGV[1]
+ "thread" => $ARGV[0]
}
});