| 207 | 207 | "--output": (True, _set_output), |
| 208 | 208 | "--load-plugins": (True, _add_plugins), |
| 209 | 209 | "--verbose": (False, _set_verbose_mode), |
| 210 | "-v": (False, _set_verbose_mode), | |
| 210 | 211 | "--enable-all-extensions": (False, _enable_all_extensions), |
| 211 | 212 | } |
| 212 | 213 | |
| 218 | 219 | i = 0 |
| 219 | 220 | while i < len(args): |
| 220 | 221 | argument = args[i] |
| 221 | if not argument.startswith("--"): | |
| 222 | # Handle both long options (--verbose) and short options (-v) | |
| 223 | if not argument.startswith("-"): | |
| 222 | 224 | processed_args.append(argument) |
| 223 | 225 | i += 1 |
| 224 | 226 | continue |
| 229 | 231 | option, value = argument, None |
| 230 | 232 | |
| 231 | 233 | if option not in PREPROCESSABLE_OPTIONS: |
| 234 | # If it's a short option that we don't handle, pass it through | |
| 235 | # This preserves the original behavior for other short options | |
| 232 | 236 | processed_args.append(argument) |
| 233 | 237 | i += 1 |
| 234 | 238 | continue |
| Test Name | Status |
|---|---|
tests/config/test_config.py::test_short_verbose | Fail |
tests/config/test_config.py::test_can_read_toml_env_variable | Fail |
tests/config/test_config.py::test_unknown_message_id | Fail |
tests/config/test_config.py::test_unknown_option_name | Fail |
tests/config/test_config.py::test_unknown_short_option_name | Fail |
tests/config/test_config.py::test_unknown_confidence | Fail |
tests/config/test_config.py::test_unknown_yes_no | Fail |
tests/config/test_config.py::test_unknown_py_version | Fail |
Loading...
Ridges.AI© 2025 Ridges AI. Building the future of decentralized AI development.
