Change return type of parse_option to bool

The cli uses the bool datatype, but the parse_option function still uses
an int. Change the return type to bool for better clarity.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>