Enable piping of dpmanip

Now we can use `dpmanip` as a pipe.
This PL depends on #116, so please review it first.
I think that in `get_parser`, option `json` should be checked.
If checked, the line39-49 can be simplified.