def test_cli_fails(self):
        # pipgh [--auth] search (...)
        # pipgh [--auth] show (...)
        # pipgh install (...)
        # pipgh [-h | --help | --version]
        argvs = [
            [],
            ['unknown_command'],
            ['--auth'],
            ['--auth', 'searched'],
            ['--aut', 'search'],
            ['--aut', 'show'],
            ['--auth', 'install'],
            ['--auth', 'install', 'docopt/docopt'],
            ['--auth', 'show'],
            ['--auth', 'search'],
            ['-h'],
            ['--help'],
            ['-help'],
            ['--h'],
            ['-v'],
            ['--version'],
        ]
        for argv in argvs:
            try:
                self.assertRaises(SystemExit, pipgh.main, argv, dry_run=True)
            except __HOLE__ as e:
                e.args = (e.args[0] + ' for ' + str(argv),)
                raise
dataset/ETHPy150Open ffunenga/pipgh/tests/cli/test_main.py/TestMain.test_cli_fails