kotlinx-cli icon indicating copy to clipboard operation
kotlinx-cli copied to clipboard

Added DefaultValuePattern to set default value using values of other …

Open LepilkinaElena opened this issue 5 years ago • 2 comments

…options

LepilkinaElena avatar Mar 16 '20 17:03 LepilkinaElena

I'm not sure that such sophisticated logic should be a part of argument parsing.

sbogolepov avatar Mar 17 '20 11:03 sbogolepov

I agree that it looks may be complicated, but it's often needed by compiler and other connected tools. Calculating such options separately can cause more mistakes. Also we need then generated by user help message to describe user how values for some options are calculated. That was already discussed and also should be done, but it isn't full solution for this. We should discuss this feature with more details.

LepilkinaElena avatar Mar 17 '20 11:03 LepilkinaElena