def __init__(self):
    super(CouchbaseCLI, self).__init__()
    self.parser.prog = 'couchbase-cli'
    subparser = self.parser.add_subparsers(title='Commands', metavar='')
    for (name, klass) in find_subcommands():
        if klass.is_hidden():
            subcommand = subparser.add_parser(name)
        else:
            subcommand = subparser.add_parser(name, help=klass.get_description())
        subcommand.set_defaults(klass=klass)
    group = self.parser.add_argument_group('Options')
    group.add_argument('-h', '--help', action=CBHelpAction, klass=self, help='Prints the short or long help message')
    group.add_argument('--version', help='Get couchbase-cli version')
def __init__(self):
    super(CouchbaseCLI, self).__init__()
    self.parser.prog = 'couchbase-cli'
    subparser = self.parser.add_subparsers(title='Commands', metavar=)
    for (name, klass) in find_subcommands():
        if klass.is_hidden():
            subcommand = subparser.add_parser(name)
        else:
            subcommand = subparser.add_parser(name, help=klass.get_description())
        subcommand.set_defaults(klass=klass)
    group = self.parser.add_argument_group('Options')
    group.add_argument('-h', '--help', action=CBHelpAction, klass=self, help='Prints the short or long help message')
    group.add_argument('--version', help='Get couchbase-cli version')