Remove optimist dep from errors modules.