1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 03:19:47 +08:00

core/commands: Enable stdin arguments for 'add' and 'cat', resolves #542

This commit is contained in:
Matt Bell
2015-01-12 11:32:25 -08:00
parent 78d36230d5
commit 70adc21d08
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ it contains.
},
Arguments: []cmds.Argument{
cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to be outputted"),
cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to be outputted").EnableStdin(),
},
Run: func(req cmds.Request) (interface{}, error) {
node, err := req.Context().GetNode()