Fix cli flag orders (long, short)
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
rht committed
Oct 19, 2015 at 12:53 UTC
c091cf5abe24a8208b023746bd14310988621c8d
2 files changed
+3
-3
commands/option.go
+2
-2
@@ -163,8 +163,8 @@ const (
163
)
164
165
// options that are used by this package
166
-var OptionEncodingType = StringOption(EncShort, EncLong, "The encoding type the output should be encoded with (json, xml, or text)")
167
-var OptionRecursivePath = BoolOption(RecShort, RecLong, "Add directory paths recursively")
166
+var OptionEncodingType = StringOption(EncLong, EncShort, "The encoding type the output should be encoded with (json, xml, or text)")
167
+var OptionRecursivePath = BoolOption(RecLong, RecShort, "Add directory paths recursively")
168
var OptionStreamChannels = BoolOption(ChanOpt, "Stream channel output")
169
var OptionTimeout = StringOption(TimeoutOpt, "set a global timeout on the command")
170
core/commands/id.go
+1
-1
@@ -53,7 +53,7 @@ ipfs id supports the format option for output with the following keys:
53
cmds.StringArg("peerid", false, false, "peer.ID of node to look up").EnableStdin(),
54
},
55
Options: []cmds.Option{
56
- cmds.StringOption("f", "format", "optional output format"),
56
+ cmds.StringOption("format", "f", "optional output format"),
57
},
58
Run: func(req cmds.Request, res cmds.Response) {
59
node, err := req.InvocContext().GetNode()