You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .env() method is useful for denoting environment variables as "required" and providing nice error messages, but it always exits with the status code 1 and there is no way to set a more descriptive code so that users can more easily find relevant support material. This is made worse because 1 is also the default exit code by everyone else so it is quite overloaded.
Sounds reasonable to make the exitCode configurable. Should we make a distinction between missing or invalid values?
We could also set the exitCode to 2 by default for invalid usage.
We @polyseam are happy users of Cliffy!
The
.env()
method is useful for denoting environment variables as"required"
and providing nice error messages, but it always exits with the status code1
and there is no way to set a more descriptive code so that users can more easily find relevant support material. This is made worse because1
is also the default exit code by everyone else so it is quite overloaded.I created a repo to demonstrate the above at johnstonmatt/required-env-demo.
Thanks for all your hard work on cliffy!
The text was updated successfully, but these errors were encountered: