MXS-1300: Add usage to all commands
Added usage instructions for all commands. If the generated usage is used with the `pkg` packager, it will contain generated script names which are confusing.
This commit is contained in:
@ -21,8 +21,9 @@ exports.builder = function(yargs) {
|
||||
var target = 'servers/' + argv.server + "/set?status=" + argv.status
|
||||
doRequest(target, null, {method: "POST"})
|
||||
})
|
||||
.usage("Usage: set <command>")
|
||||
.help()
|
||||
.command('*', 'the default command', {}, () => {
|
||||
console.log("Unknown command. See output of 'help set' for a list of commands.")
|
||||
})
|
||||
.help()
|
||||
}
|
||||
|
Reference in New Issue
Block a user