Do the processing of standard command-line arguments to the library.

Before, they had to be handled by the user application.