Document required create service
parameters
When a service is created via MaxCtrl, the `user` and `password` parameters must be defined. This was not documented in the command help output.
This commit is contained in:
@ -200,7 +200,8 @@ exports.builder = function(yargs) {
|
|||||||
.command('service <name> <router> <params...>', 'Create a new service', function(yargs) {
|
.command('service <name> <router> <params...>', 'Create a new service', function(yargs) {
|
||||||
return yargs.epilog('The last argument to this command is a list of key=value parameters ' +
|
return yargs.epilog('The last argument to this command is a list of key=value parameters ' +
|
||||||
'given as the service parameters. If the --servers or --filters options ' +
|
'given as the service parameters. If the --servers or --filters options ' +
|
||||||
'are used, they must be defined after the service parameters.')
|
'are used, they must be defined after the service parameters.' +
|
||||||
|
'\n\nNote that the `user` and `password` parameters must be defined.')
|
||||||
.usage('Usage: service <name> <router> <params...>')
|
.usage('Usage: service <name> <router> <params...>')
|
||||||
}, function(argv) {
|
}, function(argv) {
|
||||||
maxctrl(argv, function(host) {
|
maxctrl(argv, function(host) {
|
||||||
|
Reference in New Issue
Block a user