only populate main namespace if called from Rex::CLI