You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm calling the foo command itself, it works:
$ python app.py foo baz
baz
But when I'm calling the bar command, I'm getting this:
$ python app.py bar
Not enough arguments (missing: "baz")
If I replace self.call by self.call_silent that's the error:
$ python app.py bar
AttributeError
'builtin_function_or_method' object has no attribute 'bind'
at ~/Library/Caches/pypoetry/virtualenvs/app-wSCSi1z6-py3.9/lib/python3.9/site-packages/cleo/commands/base_command.py:103 in run
99│ def run(self, io: IO) -> int:
100│ self.merge_application_definition()
101│
102│ try:
→ 103│ io.input.bind(self.definition)
104│ except CleoException:
105│ if not self._ignore_validation_errors:
106│ raise
107│
The text was updated successfully, but these errors were encountered:
I'm using this sample
app.py
:When I'm calling the
foo
command itself, it works:But when I'm calling the
bar
command, I'm getting this:$ python app.py bar Not enough arguments (missing: "baz")
If I replace
self.call
byself.call_silent
that's the error:The text was updated successfully, but these errors were encountered: