mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
core/commands2: Removed unused options from 'config', and fixed synopsis syntax
This commit is contained in:
parent
646920b0dd
commit
2a2ec747d5
@ -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()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user