add myrepo.cli.modmain for easier tests