We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference: https://github.com/confio/ts-relayer/pull/173/files/af3e18ccdaeb5e9f817c1d0372c0ffba6d12993c#r622158971
Allow for boolean values in resolveOption function: https://github.com/confio/ts-relayer/blob/main/src/binary/utils/options/resolve-option.ts
e.g.
const enableMetrics = resolveOption('enableMetrics', { required: true, boolean: true })( flags.enableMetrics, process.env.RELAYER_ENABLE_METRICS, app?.enableMetrics, false, )
Currently, it's only capable of resolving strings to string/integer.
The text was updated successfully, but these errors were encountered:
I wonder if this is not an overkill. If boolean flag is not passed, it gets a false value and we never need to throw. 🤷
false
Sorry, something went wrong.
I wonder if this is not an overkill. If boolean flags is not passed, it gets a false value and we never need to throw. shrug
I guess you are right. Maybe just the non-required version?
Yeah, I'll try to come up with something nice. Let's see...
No branches or pull requests
Reference: https://github.com/confio/ts-relayer/pull/173/files/af3e18ccdaeb5e9f817c1d0372c0ffba6d12993c#r622158971
Allow for boolean values in resolveOption function: https://github.com/confio/ts-relayer/blob/main/src/binary/utils/options/resolve-option.ts
e.g.
Currently, it's only capable of resolving strings to string/integer.
The text was updated successfully, but these errors were encountered: