get port by require or cli arg test