MXS-1929: Fix MaxCtrl errors
The filter parameters were a mandatory argument even for filters that don't need parameters. Also fixed the usage information.
This commit is contained in:
@ -211,10 +211,10 @@ exports.builder = function(yargs) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Create filter
|
// Create filter
|
||||||
.command('filter <name> <module> <params...>', 'Create a new filter', function(yargs) {
|
.command('filter <name> <module> [params...]', 'Create a new filter', 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 filter parameters.')
|
'given as the filter parameters.')
|
||||||
.usage('Usage: filter <name> <router> <params...>')
|
.usage('Usage: filter <name> <module> [params...]')
|
||||||
}, function(argv) {
|
}, function(argv) {
|
||||||
|
|
||||||
var filter = {
|
var filter = {
|
||||||
|
|||||||
Reference in New Issue
Block a user