ksamdev/bsm_analyze — Issue #42: PyROOT intercepts --help option
Author: ksamdev
Created: 2012-03-08 22:49:54+00:00
State: open
Labels: template

the --help option is intercepted by PyROOT and wrong usage scring is printed instead, e.g.:

```
Usage: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [-l] [-b] [-n] [-q] [dir] [[file:]data.root] [file1.C ... fileN.C]
Options:
-b : run in batch mode without graphics
-x : exit on exception
-n : do not execute logon and logoff macros as specified in .rootrc
-q : exit after processing command line macro files
-l : do not show splash screen
dir : if dir is a valid directory cd to it before executing

-? : print usage
-h : print usage
--help : print usage
-config : print ./configure options
-memstat : run with memory usage monitoring
```

instead of:

```
Usage: main.py [options] [plots:A,B,C] [folders:A,B,C] [channels:A,B,C]

Options:
-h, --help show this help message and exit
-b, --batch Run application in batch mode
-v, --verbose Print additional info
--filename=FILENAME input filename
--scales=SCALES scales filename
```

import ROOT after arguments are parsed to let --help option work correctly.