sentence: captain george mainwaring ( ) is the bank manager and home guard company commander portrayed by arthur lowe on the bbc television sitcom dad 's army , set in the fictional seaside town of walmington-on-sea during the second world war .