So it's not the most secure practice to pass a password in through a command line argument. That said, the documentation for openssl confused me on how to pass a password argument to the openssl command.
Here's what I'm trying to do
openssl aes-256-cbc -in some_file.enc -out some_file.unenc -d
This then prompts for the pass key for decryption. I searched the openssl documents and the interwebs to try and find the answer if I simply wanted to give the password to the command without trying to echo the password to the file. I tried adding -pass:somepassword and -pass somepassword both with and without quotes to no avail.
I finally figured out the answer and saw in some other forums people had similar questions, so I thought I would post my question and answer here for the community.
note: I'm using openssl version 0.9.8y