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
I have outlined an issue I have had on stack overflow here
In it, I am describing a situation where I have two option groups (dynamically loaded) that have an option with the same short-hand flag. This causes an issue because the input is always parsed as one of them and not the other. I need some way of having the options being conditionally used to parse the input based on the value of another option.
Given the nature of the setup, I have little control over the construction of the options in an option group. I control the construction of the selector option, so its possible values relate to the various dynamically loaded option groups. So a solution where I can say something along the lines, apply this option group if my value is set to x would be ideal
Ultimately I think the optiongroup extension is changing the way the help information is displayed and not changing the underlying implementation of option.
so in reality it is probably closer to, enable this list of options (disabling all others) if my value is x
Please let me know how I am meant to achieve this, or can you please add this kind of control as a feature?
This discussion was converted from issue #2689 on March 07, 2024 15:20.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have outlined an issue I have had on stack overflow here
In it, I am describing a situation where I have two option groups (dynamically loaded) that have an option with the same short-hand flag. This causes an issue because the input is always parsed as one of them and not the other. I need some way of having the options being conditionally used to parse the input based on the value of another option.
Given the nature of the setup, I have little control over the construction of the options in an option group. I control the construction of the selector option, so its possible values relate to the various dynamically loaded option groups. So a solution where I can say something along the lines, apply this option group if my value is set to x would be ideal
Ultimately I think the optiongroup extension is changing the way the help information is displayed and not changing the underlying implementation of
option
.so in reality it is probably closer to, enable this list of options (disabling all others) if my value is x
Please let me know how I am meant to achieve this, or can you please add this kind of control as a feature?
$ cli -m local -p /filepath $ cli -m remote -p profile-name $ cli -m money - p 160
Beta Was this translation helpful? Give feedback.
All reactions