core/commands2: 'object' description formatting improvements
Matt Bell committed
Nov 8, 2014 at 20:13 UTC
c8345bb5c64849115d4b5bac8cb0507f217cf54d
1 file changed
+7
-4
core/commands2/object.go
+7
-4
@@ -96,12 +96,15 @@ var objectGetCmd = &cmds.Command{
96
It serializes the DAG node to the format specified by the "--encoding" flag.
97
It outputs to stdout, and <key> is a base58 encoded multihash.
98
99
-This command outputs data in the following encodings: "protobuf", "json", "xml"
100
-(Specified by the "--encoding" flag)`,
99
+This command outputs data in the following encodings:
100
+ * "protobuf"
101
+ * "json"
102
+ * "xml"
103
+(Specified by the "--encoding" or "-enc" flags)`,
104
105
Arguments: []cmds.Argument{
106
cmds.Argument{"key", cmds.ArgString, true, false,
104
- "Key of the object to retrieve, in base58-encoded multihash format"},
107
+ "Key of the object to retrieve\n(in base58-encoded multihash format)"},
108
},
109
Run: func(res cmds.Response, req cmds.Request) {
110
n := req.Context().Node
@@ -142,7 +145,7 @@ Data should be in the format specified by <encoding>.
145
146
Arguments: []cmds.Argument{
147
cmds.Argument{"data", cmds.ArgFile, true, false,
145
- "Data to be stored as a DAG object, encoded as specified in <encoding>"},
148
+ "Data to be stored as a DAG object\nMust be encoded as specified in <encoding>"},
149
cmds.Argument{"encoding", cmds.ArgString, true, false,
150
"Encoding type of <data>, either \"protobuf\" or \"json\""},
151
},