cli
cli copied to clipboard
Using --bypass throws an error instead of a deprecation warning
Do you want to request a feature or report a bug?
bug
What is the current behavior?
If one attempts to use the now deprecated --bypass flag, an error is thrown rather than displaying a deprecation warning. This seems to be the result of #1789 (I think https://github.com/heroku/cli/blob/master/packages/certs-v5/lib/get_cert_and_key.js#L25)
➜ heroku certs:add -a my-app --bypass server.crt server.key
▸ cli is not defined
What is the expected behavior?
Something along the lines of:
➜ heroku certs:add -a my-app --bypass server.crt server.key
▸ WARNING: use of the --bypass flag is deprecated. The flag currently does not perform any additional behavior. Please remove --bypass