Print meaningul error when invalid target specified and exit

Also adjust test_help accordingly.

Change-Id: Ib209e60937599604cdc60d06199a967aeab8ea11
Fixes-bug: #1309097