Access CommandLineParser.addCommand statically.

This prevents a NullPointerException when running :eclipseaction from
the command line. Since we execute the addCommand(..) function after
quitting command line mode, the parser would be null.

Since the parser's addCommand method would access the static map anyway,
making the whole function static doesn't change a thing.

Fixes #382.