Permalink
Browse files

trade_push: helpful comment

  • Loading branch information...
ysth committed Nov 26, 2012
1 parent 89b08f1 commit b23575a0a21c0cfa22fa4f5013b678777c893361
Showing with 1 addition and 0 deletions.
  1. +1 −0 trade_push.pl
View
@@ -64,6 +64,7 @@
my $items;
if ($cargo =~ /^\{/) {
+ # e.g. --cargo '{"quantity":6,"type":"ship","name":"Probe 30","ship_type":"probe","hold_size":0,"berth_level":1,"speed":22550,"size":50000}'
$cargo = decode_json($cargo);
$items = [ map { { type => $_, quantity => $cargo->{$_} } } keys %$cargo ];
}

0 comments on commit b23575a

Please sign in to comment.