Pyroot overrides -h option parsing

I’ve run into this problem as well. Based on [url]How do I tell PyRoot to ignore command line options? the solution is to always import pyroot as follows.

import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True

I would recommend adding this line in every module that imports the ROOT namespace. Otherwise, if your main script imports that module before importing ROOT, that module could use a ROOT object before this option is changed, causing the override of “-h” to happen anyways.