use option parser to allow get options in parametters instead of raw input