How to disable boot on MacBook Pro when lid is opened?
This article has the info for you.
Steps :
Open the Terminal from this location
/Applications/Utilities/
Enter the command -
sudo nvram AutoBoot=%00
to turn off autoboot feature.Hit return and authenticate with the admin password (necessary due to sudo).
Exit terminal when finished
Note : If you want to reset to defaults, then enter this command - sudo nvram AutoBoot=%03