Added Default to config cmd

Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
Richard Littauer 2016-05-11 16:04:54 -04:00
parent a2bcec40ba
commit e83d0b15a8

View File

@ -51,8 +51,8 @@ Set the value of the 'datastore.path' key:
cmds.StringArg("value", false, false, "The value to set the config entry to."),
},
Options: []cmds.Option{
cmds.BoolOption("bool", "Set a boolean value. Default: false."),
cmds.BoolOption("json", "Parse stringified JSON. Default: false."),
cmds.BoolOption("bool", "Set a boolean value.").Default(false),
cmds.BoolOption("json", "Parse stringified JSON.").Default(false),
},
Run: func(req cmds.Request, res cmds.Response) {
args := req.Arguments()