sloccount --duplicates --wide --details path ...
You need to have ohcount 3.0.0 or later installed and it needs to be directly executable from the path. You can check by calling ohcount --help. ohcount can be built manually or is available from some system package management tools. For example it's available as ohcount in the latest macports.
ohconvert path ...
Output Hudson SLOCCountPlugin compatible data collected with ohcount.
-h, --help show this help message and exit
- -o sloccount.sc, --output=sloccount.sc
- Output filename (instead of stdout)
The source code can be found at: http://bitbucket.org/hannosch/ohconvert/