Add optional parameter '-r' to command line

Signed-off-by: Ilya Nelkenbaum <ilya@nelkenbaum.com>