Skip to content

Failure when reading integer option value from short form #5

Description

@mwsis
Traceback (most recent call last):
... line 109, in main
args = clasp.parse(argv_list, _SPECIFICATIONS)
File ". . ./.venv/lib/python3.13/site-packages/pyclasp/__init__.py", line 39, in parse
return Arguments(argv, specifications)
File ". . ./.venv/lib/python3.13/site-packages/pyclasp/arguments.py", line 39, in __init__
flags, options, values = Arguments._parse(argv, self.specifications)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ". . ./.venv/lib/python3.13/site-packages/pyclasp/arguments.py", line 630, in _parse
option = OptionArgument(arg, index, given_name, resolved_name, arg_spec, len(hyphens), given_label, value, extras)
File ". . ./.venv/lib/python3.13/site-packages/pyclasp/option_argument.py", line 67, in __init__
self._set_value(value, True)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File ". . ./.venv/lib/python3.13/site-packages/pyclasp/option_argument.py", line 151, in _set_value
raise MissingValueException("the '%s' option does not have a value to be interpreted as an integer" % (self.name))
pyclasp.exceptions.MissingValueException: the '--depth' option does not have a value to be interpreted as an integer

This when passing option "... -d 10 ...", whereas "... --depth=10 ..." is fine

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions