add maxLength command line option