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:
Markus Mäkelä 2019-06-18 12:52:34 +03:00
parent a60bd37610
commit 96d5c575f8
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -200,7 +200,8 @@ exports.builder = 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 ' +
'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...>')
}, function(argv) {
maxctrl(argv, function(host) {