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 where desired except in such cases where the judge does not wish to impose a jail term.