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
{{ message }}
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
The problem seems to be here because if nothing else is being passed the last value will be undefined. If something else is passed it will be turned into the value.
For now the workaround for me is to add an empty string to the back of argv but this doesn't seem to be a good solution.
Update: in fact this doesn't even work. The fix instead is a documentation one for now to mention to pass an empty string
The text was updated successfully, but these errors were encountered:
This seems like intended behavior, no? If it's a boolean flag, it should have no value. if it's a string flag, it should have a value. I'm not sure they support a flag that acts as both.
Hi there,
I have an issue that faced in https://github.com/twilio-labs/plugin-serverless where present string flags without any value don't work.
For example, this doesn't work:
This works however:
The problem seems to be here because if nothing else is being passed the last value will be
undefined
. If something else is passed it will be turned into the value.For now the workaround for me is to add an empty string to the back of
argv
but this doesn't seem to be a good solution.Update: in fact this doesn't even work. The fix instead is a documentation one for now to mention to pass an empty string
The text was updated successfully, but these errors were encountered: