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
If --chart is not present, I would want the value to be false.
If it is present, but [columns] are not, I want to default it to something like ['col1', 'col2'].
If something like --chart col1,col2,col3 is passed, I want those values to take precedence.
Unfortunately, the option value callback (splitOrDefault above) is not called if the value is undefined, and thus I cannot check for --chart being defined but not [columns], and it's just defaulted to false.
Given line 332, I get that this callback behavior is intended, but wanted to discuss before submitting a PR.
I may be asking for too much from commander, or there might be a simpler way... is this possible?
The text was updated successfully, but these errors were encountered:
Hopefully the title isn't too confusing :)
I have an option
--chart
is not present, I would want the value to befalse
.[columns]
are not, I want to default it to something like['col1', 'col2']
.--chart col1,col2,col3
is passed, I want those values to take precedence.Unfortunately, the option value callback (
splitOrDefault
above) is not called if the value isundefined
, and thus I cannot check for--chart
being defined but not[columns]
, and it's just defaulted to false.Given line 332, I get that this callback behavior is intended, but wanted to discuss before submitting a PR.
I may be asking for too much from commander, or there might be a simpler way... is this possible?
The text was updated successfully, but these errors were encountered: