use bash functions and +/- flags