Allow target to be passed on command line