fix parameter logic regarding -f and -u parameters for replace commandline client