fix options -e, --edit, for in console or GUI