fix bug of --glob option
argument interface for functions
unify duplicated icode
update