support --dev

cc @sh1mmer @micahr @cvrebert