gem list --no-installed does not work as expected

Abner Qian

With rubygems 2.0.3, if I type in gem help list, the following options appear:
-i, --[no-]installed Check for installed gem
-I Equivalent to --no-installed

However, --no-installed or -I do not actually behave like the opposite of -i.

For example if I do "gem list -i rake", it will print true and exit with exit code 0. If I do "gem list -i something_nonexistant", it will print false and exit with exit code 1.

Based off this example, I would expect that "gem list --no-installed something_nonexistant" to print true and exit with an exit code of 0 and "gem list --no-installed rake" to print false and exit with an exit code of 1. However, it behaves as if I typed in "gem list something_nonexistant" or "gem list rake" instead, seeming to completely ignore the flags.