In all cases before the municipal court, an indigent defendant shall be advised as to the right to have counsel appointed, and an attorney must be provided when desired.