added -d parameter into getopts

Signed-off-by: Adrian Matejov <a.matejov@centrum.sk>