This gets uPy readline working with unix port, with tab completion and history. GNU readline is still supported, configure using MICROPY_USE_READLINE variable.
This allows to test options passed to cmdline executable, as well as the behaviour of the REPL.