view utils/pool @ 968:e461a5529338
Backported fixes to Alignment.realign(), Markup.remove(), processors.Muscle(), *.Column.types from default branch (revs [853],[931],[932],[933],[934],[952],[954])
author |
Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
date |
Sat, 25 Feb 2012 18:50:58 +0400 |
parents |
|
children |
|
line source
7 p = optparse.OptionParser()
8 p.add_option('-n', '--size', type=int, help='Pool size')
9 p.add_option('-c', '--cmd',
10 help='Command template. Insert {} for argument.'
11 ' Put the argument in double quotes if it may contain spaces.')
12 options, args = p.parse_args()
16 if spawned > options.size:
19 cmd = shlex.split(options.cmd.replace('{}', arg))
29 # vim: set ts=4 sts=4 et sw=4: