link refname to refs or packed-refs
add commandline options