@cryptotaxi247 / kubo / commits / 4765a1d66

core/commands2: Made 'cat' require object argument

Matt Bell committed Nov 4, 2014 at 23:41 UTC 4765a1d660e8e2256b78cfc70f9f7f42af192daa
1 file changed +3 -3
core/commands2/cat.go
+3 -3
@@ -11,11 +11,11 @@ import (
11
12 var catCmd = &cmds.Command{
13 Arguments: []cmds.Argument{
14 - cmds.Argument{"object", cmds.ArgString, false, true},
14 + cmds.Argument{"object", cmds.ArgString, true, true},
15 },
16 - Help: `ipfs cat <ipfs-path> - Show ipfs object data.
16 + Help: `ipfs cat <object> - Show ipfs object data.
17
18 - Retrieves the object named by <ipfs-path> and displays the Data
18 + Retrieves the object named by <object> and outputs the data
19 it contains.
20 `,
21 Run: func(res cmds.Response, req cmds.Request) {