etcdctl: fill out ArgsUsage fields for help

USAGE in help now names positional arguments (e.g., "member remove <memberID>"
instead of "member remove [arguments...]")

Fixes #4021
This commit is contained in:
Anthony Romano
2015-12-18 17:22:17 -08:00
parent 9ee9e552e6
commit 2974c4ec27
19 changed files with 121 additions and 87 deletions

View File

@ -29,14 +29,16 @@ func NewAuthCommands() cli.Command {
Usage: "overall auth controls",
Subcommands: []cli.Command{
{
Name: "enable",
Usage: "enable auth access controls",
Action: actionAuthEnable,
Name: "enable",
Usage: "enable auth access controls",
ArgsUsage: " ",
Action: actionAuthEnable,
},
{
Name: "disable",
Usage: "disable auth access controls",
Action: actionAuthDisable,
Name: "disable",
Usage: "disable auth access controls",
ArgsUsage: " ",
Action: actionAuthDisable,
},
},
}