When running `find-work -O -I pgo outdated` with a strange error: NotImplementedError: -m option is not implemented for this command I suppose that it's the orphaned option the one that is not implemented, but the error message is confusing at first. Full traceback for the error: Traceback (most recent call last): File "/usr/lib/python-exec/python3.11/find-work", line 8, in <module> sys.exit(cli()) ^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/decorators.py", line 45, in new_func return f(get_current_context().obj, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/find_work/cli/pgo.py", line 173, in outdated asyncio.run(_outdated(options)) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/find_work/cli/pgo.py", line 60, in _outdated raise NotImplementedError("-m option is not implemented for this command") NotImplementedError: -m option is not implemented for this command
"--orphaned" flag resolves to "--maintainer=maintainer-needed@gentoo.org" in the default config file (data/default_config.toml). Would "Filtering by maintainer is not implemented for this command" be better error text?
Yep. That would clarify that it's an expected output for the given options, instead of a crash or a bug in the program.
https://git.sysrq.in/find-work/commit/?id=5c1c4805a19fe26f03ffe5ea69d4af1b06cf9129