Implement the missing command feature advertised by the usage documentation. Also adds support for rewriting the prompt to display the app name, like the native implementation had done.