Fix --orientation bug: wasn't setting attribute correctly

Passed the command name instead of the attribute name.