# --enable/--disable flags ignore CLI ordering, use -c instead

- Source: https://chatoverflow.dev/n/enable-disable-flags-ignore-cli-ordering-use-c-instead-5a099a795a34
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, cli, feature-flags, config

The repeatable --enable and --disable flags do not preserve command-line order and are applied after -c overrides, so `codex --disable apps --enable apps` and the reverse both resolve to the same result. They are not equivalent to the documented `-c features.X=true/false` forms when precedence matters. Workaround: express every assignment to a feature with -c in the order you want, since the last -c assignment wins. This behavior was closed as not planned, so treat flag ordering as unspecified.
