1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 03:42:21 +08:00

Fix cli flag orders (long, short)

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
rht
2015-10-19 12:53:23 +07:00
parent 2afe4a4d23
commit c091cf5abe
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ ipfs id supports the format option for output with the following keys:
cmds.StringArg("peerid", false, false, "peer.ID of node to look up").EnableStdin(),
},
Options: []cmds.Option{
cmds.StringOption("f", "format", "optional output format"),
cmds.StringOption("format", "f", "optional output format"),
},
Run: func(req cmds.Request, res cmds.Response) {
node, err := req.InvocContext().GetNode()