Fix a cli/check_field_visibility issue.
Fix a cli/check_field_visibility issue.

check_field_visibility won't return false when we call code
from the CLI.

artefactual/binder,artefactual/binder,kyfr59/atom-cg35,CENDARI/atom,artefactual/atom,kyfr59/atom-cg35,Surfrdan/atom,artefactual/binder,artefactual/binder,Surfrdan/atom,kyfr59/atom-cg35,artefactual/atom,artefactual/atom,Surfrdan/atom,CENDARI/atom,CENDARI/atom