Show More
@@ -345,8 +345,8 b' class commandline(object):' | |||||
345 | # (and make happy Windows shells while doing this). |
|
345 | # (and make happy Windows shells while doing this). | |
346 | return argmax // 2 - 1 |
|
346 | return argmax // 2 - 1 | |
347 |
|
347 | |||
348 |
def limit_arglist(self, arglist, cmd |
|
348 | def _limit_arglist(self, arglist, cmd, *args, **kwargs): | |
349 |
cmdlen = len(self._cmdline(cmd, |
|
349 | cmdlen = len(self._cmdline(cmd, *args, **kwargs)) | |
350 | limit = self.argmax - cmdlen |
|
350 | limit = self.argmax - cmdlen | |
351 | bytes = 0 |
|
351 | bytes = 0 | |
352 | fl = [] |
|
352 | fl = [] | |
@@ -363,7 +363,7 b' class commandline(object):' | |||||
363 | yield fl |
|
363 | yield fl | |
364 |
|
364 | |||
365 | def xargs(self, arglist, cmd, *args, **kwargs): |
|
365 | def xargs(self, arglist, cmd, *args, **kwargs): | |
366 |
for l in self.limit_arglist(arglist, cmd |
|
366 | for l in self._limit_arglist(arglist, cmd, *args, **kwargs): | |
367 | self.run0(cmd, *(list(args) + l), **kwargs) |
|
367 | self.run0(cmd, *(list(args) + l), **kwargs) | |
368 |
|
368 | |||
369 | class mapfile(dict): |
|
369 | class mapfile(dict): |
General Comments 0
You need to be logged in to leave comments.
Login now