Split into command line and library parts.