since --dev is a shortcut for --chain=dev and that case is managed in load_spec there is no need to manage it separately
--dev
--chain=dev
load_spec
(I had this branch for a while and I think it can be merged without problem)