accept both input and output options

bin/mdown : modify options condition, read from input, write to output