core/commands2: Removed unused options from 'config', and fixed synopsis syntax
Matt Bell committed
Nov 13, 2014 at 00:15 UTC
2a2ec747d5ccf287ae70eb63718ff61aa0106b99
1 file changed
+2
-6
core/commands2/config.go
+2
-6
@@ -25,8 +25,8 @@ var configCmd = &cmds.Command{
25
Synopsis: `
26
ipfs config <key> - Get value of <key>
27
ipfs config <key> <value> - Set value of <key> to <value>
28
-ipfs config --show - Show config file
29
-ipfs config --edit - Edit config file in $EDITOR
28
+ipfs config show - Show config file
29
+ipfs config edit - Edit config file in $EDITOR
30
`,
31
ShortDescription: `
32
ipfs config controls configuration variables. It works like 'git config'.
@@ -53,10 +53,6 @@ Set the value of the 'datastore.path' key:
53
cmds.StringArg("key", true, false, "The key of the config entry (e.g. \"Addresses.API\")"),
54
cmds.StringArg("value", false, false, "The value to set the config entry to"),
55
},
56
- Options: []cmds.Option{
57
- cmds.StringOption("show", "s", "Show config file"),
58
- cmds.StringOption("edit", "e", "Edit config file in $EDITOR"),
59
- },
56
Run: func(req cmds.Request) (interface{}, error) {
57
args := req.Arguments()
58