Documentation question

The docs state:

Okteto will automatically add all the build environment variables from all previous images in the dependency chain as build arguments. To refer to them, remember to add the ARG instruction on your Dockerfile.

Source

Can anyone explain what this means exactly? An example would be helpful.