def help(self, cli_obj, name, args, line):
        args = args[1:]
        syntax = name
        end = ''
        for arg in self.argTypes:
            if arg.isOptional():
                syntax += ' [<%s>' % (arg.getName(),)
                end += ']'
            else:
                syntax += ' <%s>' % (arg.getName(),)
        syntax += end

        cli_obj.output(syntax)
        if not self.helpText:
            return

        # FIXME: do nicer formatting of the help message
        cli_obj.output()
        cli_obj.output(self.helpText)
dataset/ETHPy150Open facebookarchive/git-review/src/gitreview/cli/args.py/ArgCommand.help/original