home · contact · privacy
Persist Thing names, simplify their client info display.
[plomrogue2] / plomrogue / parser.py
index 6a6aaaaa59087c2f5a240efbff92ec4025bbc752..a1b56b571b650431d297badf3f0e4573da731359 100644 (file)
@@ -106,6 +106,10 @@ class Parser:
                 if not arg.isdigit():
                     raise ArgError('Argument must be non-negative integer.')
                 args += [int(arg)]
+            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)