

def _LONG_OPTION(self):
    opt_buf = []
    while ((self.c != EOF) and (self.c == '-')):
        opt_buf.append(self.c)
        self.consume()
    if (self.c == EOF):
        SyntaxError('expected option name, got nothing')
    while ((self.c != EOF) and (self.c.isalpha() or (self.c == '-'))):
        opt_buf.append(self.c)
        self.consume()
    return ''.join(opt_buf)

dataset/ETHPy150Open guillermooo/Mercurial/shglib/parsing.py CommandLexer._LONG_OPTION/original