Lines Matching refs:rargs
1156 rargs : [string]
1169 Because of the 'rargs', 'largs', and 'values' attributes,
1257 self.rargs = None
1369 rargs = self._get_args(args)
1375 # rargs
1382 self.rargs = rargs
1387 stop = self._process_args(largs, rargs, values)
1391 args = largs + rargs
1407 def _process_args(self, largs, rargs, values):
1409 rargs : [string],
1413 options and arguments from 'rargs'. If 'allow_interspersed_args' is
1417 while rargs:
1418 arg = rargs[0]
1423 del rargs[0]
1427 self._process_long_opt(rargs, values)
1431 self._process_short_opts(rargs, values)
1434 del rargs[0]
1436 return # stop now, leave this arg in rargs
1443 # Then rargs is [arg(i), ..., arg(N-1)] and largs is a *subset* of
1452 # rargs = [arg(i+1), ..., arg(N-1)]
1467 def _process_long_opt(self, rargs, values):
1468 arg = rargs.pop(0)
1474 rargs.insert(0, next_arg)
1484 if len(rargs) < nargs:
1490 value = rargs.pop(0)
1492 value = tuple(rargs[0:nargs])
1493 del rargs[0:nargs]
1503 def _process_short_opts(self, rargs, values):
1504 arg = rargs.pop(0)
1518 rargs.insert(0, arg[i:])
1522 if len(rargs) < nargs:
1528 value = rargs.pop(0)
1530 value = tuple(rargs[0:nargs])
1531 del rargs[0:nargs]