提交 2a2ec747 作者: Matt Bell 提交者: Juan Batiz-Benet

core/commands2: Removed unused options from 'config', and fixed synopsis syntax

上级 646920b0
......@@ -25,8 +25,8 @@ var configCmd = &cmds.Command{
Synopsis: `
ipfs config <key> - Get value of <key>
ipfs config <key> <value> - Set value of <key> to <value>
ipfs config --show - Show config file
ipfs config --edit - Edit config file in $EDITOR
ipfs config show - Show config file
ipfs config edit - Edit config file in $EDITOR
`,
ShortDescription: `
ipfs config controls configuration variables. It works like 'git config'.
......@@ -53,10 +53,6 @@ Set the value of the 'datastore.path' key:
cmds.StringArg("key", true, false, "The key of the config entry (e.g. \"Addresses.API\")"),
cmds.StringArg("value", false, false, "The value to set the config entry to"),
},
Options: []cmds.Option{
cmds.StringOption("show", "s", "Show config file"),
cmds.StringOption("edit", "e", "Edit config file in $EDITOR"),
},
Run: func(req cmds.Request) (interface{}, error) {
args := req.Arguments()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论