From c8345bb5c64849115d4b5bac8cb0507f217cf54d Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Sat, 8 Nov 2014 20:13:39 -0800 Subject: [PATCH] core/commands2: 'object' description formatting improvements --- core/commands2/object.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/commands2/object.go b/core/commands2/object.go index 3affff3c7..22ce11322 100644 --- a/core/commands2/object.go +++ b/core/commands2/object.go @@ -96,12 +96,15 @@ var objectGetCmd = &cmds.Command{ It serializes the DAG node to the format specified by the "--encoding" flag. It outputs to stdout, and is a base58 encoded multihash. -This command outputs data in the following encodings: "protobuf", "json", "xml" -(Specified by the "--encoding" flag)`, +This command outputs data in the following encodings: + * "protobuf" + * "json" + * "xml" +(Specified by the "--encoding" or "-enc" flags)`, Arguments: []cmds.Argument{ cmds.Argument{"key", cmds.ArgString, true, false, - "Key of the object to retrieve, in base58-encoded multihash format"}, + "Key of the object to retrieve\n(in base58-encoded multihash format)"}, }, Run: func(res cmds.Response, req cmds.Request) { n := req.Context().Node @@ -142,7 +145,7 @@ Data should be in the format specified by . Arguments: []cmds.Argument{ cmds.Argument{"data", cmds.ArgFile, true, false, - "Data to be stored as a DAG object, encoded as specified in "}, + "Data to be stored as a DAG object\nMust be encoded as specified in "}, cmds.Argument{"encoding", cmds.ArgString, true, false, "Encoding type of , either \"protobuf\" or \"json\""}, },