`--enable` and `--disable` should list available feature keys when no value is provided

Resolved 💬 1 comment Opened Nov 10, 2025 by maxpmick Closed Jan 31, 2026

What version of Codex is running?

codex-cli 0.57.0

What subscription do you have?

ChatGPT Pro

Which model were you using?

N/A

What platform is your computer?

Linux 6.17.7-arch1-1 x86_64 unknown

What issue are you seeing?

Running codex --enable or codex --disable without supplying arguments to the flag prints:

> error: a value is required for '--enable <FEATURE>' but none was supplied

For more information, try '--help'.

This is inconsistent with other flags such as --sandbox which print their possible values:

> error: a value is required for '--sandbox <SANDBOX_MODE>' but none was supplied
  [possible values: read-only, workspace-write, danger-full-access]

For more information, try '--help'.

What steps can reproduce the bug?

Run codex --enable without providing arguments.

What is the expected behavior?

> codex --enable
> error: a value is required for '--enable <FEATURE>' but none was supplied
  [possible values: unified_exec, rmcp_client, apply_patch_freeform, view_image_tool, web_search_request, experimental_sandbox_command_assessment, ghost_commit, enable_experimental_windows_sandbox]

For more information, try '--help'.

and

> codex --disable
> error: a value is required for '--disable <FEATURE>' but none was supplied
  [possible values: unified_exec, rmcp_client, apply_patch_freeform, view_image_tool, web_search_request, experimental_sandbox_command_assessment, ghost_commit, enable_experimental_windows_sandbox]

For more information, try '--help'.

Additional information

See commit on my fork: https://github.com/openai/codex/commit/358bea32ab7ed26a34d10a621edd37041c946b96

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗