home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Persist Thing names, simplify their client info display.
[plomrogue2]
/
plomrogue
/
parser.py
diff --git
a/plomrogue/parser.py
b/plomrogue/parser.py
index 6a6aaaaa59087c2f5a240efbff92ec4025bbc752..a1b56b571b650431d297badf3f0e4573da731359 100644
(file)
--- a/
plomrogue/parser.py
+++ b/
plomrogue/parser.py
@@
-106,6
+106,10
@@
class Parser:
if not arg.isdigit():
raise ArgError('Argument must be non-negative integer.')
args += [int(arg)]
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)
elif tmpl == 'char':
try:
ord(arg)