Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

cl_autowepswitch

🟥 Executable on Client only

cl_autowepswitch <value>

Automatically switch to picked up weapons (if more powerful)

Note:

The value is saved and will be restored on next startup.