cli - extracted lastArgument() method