+ elif tmpl == 'int:pos':
+ if not arg.isdigit() or int(arg) < 1:
+ raise ArgError('Argument must be positive integer.')
+ args += [int(arg)]
+ elif tmpl == 'char':
+ try:
+ ord(arg)
+ except TypeError:
+ raise ArgError('Argument must be single character.')
+ args += [arg]