Handle commandline length limits.

Closes #3.