Add trait support to ListCommand.