add -r support for one shot mode in comprehensive example

Signed-off-by: Mattias Andrée <maandree@operamail.com>
-r support for continuous mode in comprehensive example

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