update edit command to use custom options. fixes #30. thanks @halilim.