Implement basic argument parsing for CLI.
Split into shared library and CLI. Set up tests, coverage and i18n.