Set option as a int value.
option
the option identifier
the value to set
true if option was correctly set or false otherwise.