handling if empty argument is given to --open option