def command_exists(cmd_name):
    return (find_entry_point_for_command(cmd_name) or
            is_exe_in_path('rbt-%s' % cmd_name))
When cmd argument is passed check it is renamed to command.
dataset/ETHPy150Open reviewboard/rbtools/rbtools/commands/__init__.py/command_exists--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/dockerng_test.py/DockerngTestCase.test_create_with_arg_cmd