fix a bug: show incorrect error message when calling -f without
arguments
update documents