@cryptotaxi247 / kubo / commits / 4abba7bc0

put has no key argument (it's derived from the valfile)

Henry committed Oct 14, 2014 at 00:13 UTC 4abba7bc032c8d55a7af92a393d5b16dd4571061
1 file changed +4 -4
cmd/ipfs/block.go
+4 -4
@@ -12,7 +12,7 @@ var cmdIpfsBlock = &commander.Command{
12 Long: `ipfs block (get|put) - get/put **raw** ipfs blocks.
13
14 ipfs block get <key> > valfile - get block of <key> and write it to valfile
15 - ipfs block put <key> < valfile - pipe valfile to block <key>
15 + ipfs block put < valfile - saves the conents of valfile and returns it's <key>
16 `,
17 // Run: blockGetCmd,
18 Subcommands: []*commander.Command{
@@ -24,7 +24,7 @@ var cmdIpfsBlock = &commander.Command{
24
25 var cmdIpfsBlockGet = &commander.Command{
26 UsageLine: "get",
27 - Short: "get a row ipfs block",
27 + Short: "get a raw ipfs block",
28 Run: makeCommand(command{
29 name: "blockGet",
30 args: 1,
@@ -36,10 +36,10 @@ var cmdIpfsBlockGet = &commander.Command{
36
37 var cmdIpfsBlockPut = &commander.Command{
38 UsageLine: "put",
39 - Short: "put a row ipfs block",
39 + Short: "put a raw ipfs block",
40 Run: makeCommand(command{
41 name: "blockPut",
42 - args: 1,
42 + args: 0,
43 flags: nil,
44 online: true,
45 cmdFn: commands.BlockPut,