def METHOD_NAME(instance_runner, command):
    _, runner = instance_runner
    result = runner.invoke(command)
    assert result.exit_code == 2
    assert "Error, you must specify an asset key or use `--all`" in result.output
    result = runner.invoke(command, ["--all", json.dumps(["path", "to", "asset_key"])])
    assert result.exit_code == 2
    assert "Error, cannot use more than one of: asset key, `--all`." in result.output