add functions for creating options

Signed-off-by: Mattias Andrée <maandree@operamail.com>