unify --print and --call implementation
integrate all function related options.